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.
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
Read the auth method that matches your API.
Build the header exactly as required.
Test the request in your target environment.
Related guides
Last updated
Was this helpful?
