ID token and refresh token
POST /api/login returns an idToken, a refreshToken, and the account’s localId.
- Send the
idTokenas the Bearer token for API calls. - Use the
refreshTokento obtain a new ID token when necessary. - Do not use the refresh token as an API request credential.
API key
An API key is the long-lived alternative to an ID token. Use it for a service that cannot maintain a person’s session. Store the key in a secret manager and never expose it in browser code, source control, logs, support tickets, or email. The Get the caller’s API key reference documents retrieving a key, and the adjacent API Keys reference page documents issuing one. Contact SOXAI if your integration needs API-key access.Authorization is separate from authentication
Authentication identifies the caller. Authorization determines which users, organizations, and data that caller can access. The Authorization section at the bottom of each API-reference endpoint is the source of truth for that endpoint. If a request returns401, the credential is missing, invalid, or expired. If it returns 403, the credential is valid but the caller is not permitted to make that request.