Authorization header.
Two auth endpoints cover the whole lifecycle:
Credentials
Keep credentials server-side. Your API key and secrets grant access to organization data. Never embed them in client-side code or expose them in a browser; only transmit them over HTTPS.
Get a token
Example
Response
Call the API
IncludeAuthorization: Bearer <accessToken> on every request. BrandWallet validates the token on each call and rejects missing, expired, or malformed tokens. When the token expires, refresh it or request a new one with your credentials.
Refresh a token
Refresh tokens are rotated — each successful call invalidates the token you sent and returns a brand-new pair. Replace both stored tokens immediately after a successful refresh; resending an old refresh token fails with _invalid_refresh_token.
Payload schema:
The response has the same shape as
POST /auth/token: a new accessToken, tokenType, expiresIn, and refreshToken.
Error codes
For the complete list of error codes returned across all endpoints, see the Error Reference.

