unauthorized
HTTP Status: 401 Unauthorized
Example response
What happened?
The API could not authenticate your request. This happens when:- No
Authorizationheader is present - The header format is wrong (not
Bearer <key>) - The API key doesn’t match any active key in the system
- The API key has been revoked or deactivated
How to fix
- Add the Authorization header with the
Bearerscheme: - Check your key: Make sure you’re using the complete key, including the
vtly_live_prefix - Generate a new key if you’ve lost your original. Keys are stored as SHA-256 hashes and cannot be recovered
Common mistakes
- Missing
Bearerprefix:Authorization: vtly_live_xxxwon’t work, it must beAuthorization: Bearer vtly_live_xxx - Extra whitespace: Check for trailing spaces or newlines in your key
- Using a revoked key: If you’ve regenerated your key, the old one no longer works
- Environment mismatch: Make sure you’re using the right key for the right environment
Catching this error with the SDKs
Related errors
rate_limit_exceeded- Key is valid but quota is used up