Error Reference
Every API error returns a JSON envelope with a machine-readable code, a human-readable message, and a link back to this page.
{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable explanation",
"docs_url": "https://alkoholiks-api.vercel.app/docs/errors#ERROR_CODE"
}
}
UNAUTHORIZED401The request is missing the Authorization header or it doesn't start with "Bearer ".
INVALID_TOKEN401The access token is invalid, expired, or has been revoked.
INVALID_CLIENT401The client_id or client_secret is wrong, or the consumer account has been deactivated.
INVALID_REQUEST400Required fields are missing from the token request (client_id, client_secret).
UNSUPPORTED_GRANT_TYPE400The grant_type is not "client_credentials". This is the only supported grant type.
RATE_LIMIT_EXCEEDED429You've exceeded 100 requests per hour. Wait for the rate limit window to reset.
VALIDATION_ERROR400A required query parameter is missing or invalid (e.g., search without a "q" parameter).
INTERNAL_ERROR500An unexpected server error occurred. If this persists, please report it.