Authentication methods: Basic & Bearer

Choose the authentication scheme required by the API you are calling. Use this page to decide between Basic authentication and Bearer authentication before you build your request headers.

Which method should you use?

  • Use BasicAuth when the API expects credentials in a Basic authorization header.

  • Use BearerAuth (JWT) when the API expects a bearer token.

Do not choose the authentication method by preference. Choose the method required by the endpoint or integration flow.

Before you continue

  • Confirm which API you are integrating with.

  • Confirm whether the API expects a static credential or a token-based flow.

  • Make sure you already have the required keys, credentials, or token generation setup.

Quick path

  1. Read the auth method that matches your API.

  2. Build the header exactly as required.

  3. Test the request in your target environment.

BasicAuthBearerAuth (JWT)

Last updated

Was this helpful?