Unauthorized
The request did not include a valid API key bearer token.
| Property | Value |
|---|---|
| Type | https://docs.headcode.dev/errors/general/unauthorized |
| Code | HEADCODE.GENERAL.UNAUTHORIZED |
| HTTP status | 401 |
| Title | Unauthorized |
Example
Section titled “Example”{ "type": "https://docs.headcode.dev/errors/general/unauthorized", "title": "Unauthorized", "status": 401, "detail": "missing or malformed Bearer token", "code": "HEADCODE.GENERAL.UNAUTHORIZED", "errors": [ { "detail": "Send the API key using the Authorization header with the Bearer scheme.", "header": "Authorization" } ]}How to resolve
Section titled “How to resolve”Send your API key in the Authorization header:
Authorization: Bearer hc_...If the token is present but rejected, verify that the key has not been revoked or mistyped.