Errors
UNAUTHENTICATED — 401 Unauthorized
401 Unauthorized
Authentication failed. The request did not include valid credentials.
Category
authentication
Retryable?
No. Fix the credential issue before retrying.
Common Causes
- Missing
Authorizationheader - Malformed header (e.g., missing
Bearerprefix) - Expired or revoked API key
- Using a sandbox key against the production endpoint (or vice versa)
Example
Code