Bearer token
Every Guard API request requires anAuthorization: Bearer {api-key} header.
Authentication failures
| HTTP | Code | Cause |
|---|---|---|
401 | UNAUTHORIZED | Missing Authorization header or invalid key. |
403 | API_INACTIVE | Key is deactivated or revoked. |
404 | API_NOT_FOUND | The {api-id} in the URL doesn’t exist. |
Key lifecycle
Keys are issued, rotated, and revoked by administrators in Citadel. Your client should:- Read the key from a secret store, never commit it to source control.
- Retry on
401only once — if it still fails, fetch a fresh key from your secret store. - Treat a
403 API_INACTIVEas terminal — stop sending requests until the key is rotated.