Skip to content

API reference

unauthorized

Missing or wrong credentials. REST: send `Authorization: Bearer <API key>`. MCP: reconnect to sign in with OAuth. Don't retry with the same bad key.

HTTP status 401
Safe to retry No
Message (fixed, English) Missing or invalid credentials.

What to do

Missing or wrong credentials. REST: send Authorization: Bearer <API key>. MCP: reconnect to sign in with OAuth. Don't retry with the same bad key.

Error shape

{
  "code": "unauthorized",
  "message": "Missing or invalid credentials.",
  "retryable": false,
  "request_id": "req_…"
}

Can be returned by 173 operations

All error codes