Skip to content

invalid_or_expired_token

invalid_or_expired_token: HTTP 401, authentication error. Invalid or expired token.


Code invalid_or_expired_token
Type authentication_error
HTTP status 401
Default message Invalid or expired token.

We could not tell who is calling. Check the credentials you send.

Every error has the same shape; error.code is this code, and meta.request_id is what to quote when you ask us about a request.

{
"error": {
"type": "authentication_error",
"code": "invalid_or_expired_token",
"detail": "Invalid or expired token.",
"documentation_url": "https://docs.baiyar.com/resources/errors/invalid_or_expired_token/"
},
"meta": { "request_id": "req_…" }
}

All error codes