client_id and client_secret for a bearer access token. Then send that token with every request.
Get a token
Response
The token request can fail with:
Call the API
Send the token in theAuthorization header:
One active token per API key
Each API key has one active token at a time. When you request a new token or rotate the secret, the previous token stops working. Requests with it return401 token_superseded.
Fetch a token, reuse it until it expires, and fetch a new one when you get a 401.