Skip to main content
Ordinary HTTP API failures use application/problem+json. Read the status and stable code before deciding what to do.

Fields

  • code is the machine-readable reason.
  • detail explains this failure.
  • resolution tells a caller what can correct it.
  • status repeats the HTTP status when a response includes it.

Common responses

interactive_required means a person must finish the named action. Give the owner the supplied URL or instruction and wait for them. access_token_required means the bearer credential is the wrong type for the operation. Use an owner access token from email sign-in to create, list, or revoke keys. A claimed WorkOS agent access token can create a key, but cannot list or revoke keys. An API key cannot manage keys through /api/api-keys. Signed-in owners can also manage keys in Settings using their browser session.

Authentication challenges

A protected HTTP endpoint can return WWW-Authenticate: Bearer with resource_metadata for the requested resource. The API metadata explains bearer-header use. It does not make an MCP token valid for the HTTP API.