Authorization header.
Generating a token
Generate an API token from the Alta dashboard under User Profile > API tokens.Making authenticated requests
Include the token in theAuthorization header:
Multi-account users
If your user has access to multiple accounts, you must include thex-account-id header to specify which account to use:
Error responses
If authentication fails, the API returns a401 Unauthorized response:
- Missing
Authorizationheader - Invalid or expired token
- Using a non-Bearer authorization type
- Missing
x-account-idheader for multi-account users