Skip to content
Alpha — Headcode is currently in alpha. APIs and data may change without notice.

Unauthorized

The request did not include a valid API key bearer token.

PropertyValue
Typehttps://docs.headcode.dev/errors/general/unauthorized
CodeHEADCODE.GENERAL.UNAUTHORIZED
HTTP status401
TitleUnauthorized
{
"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"
}
]
}

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.