message with the same text. The OpenAI format looks like this:
type: "error", an error object with type and message, and the request_id. Platform API endpoints such as /agent/v1/... return a JSON object with message. Every response carries an x-request-id header. Include it when you contact support.
Authentication (401)
After many failed attempts from the same network, further attempts get
429 for a short time.
Permissions (403)
Requests (400, 404)
Limits (429)
A token limit
429 whose message says the request alone is larger than the limit cannot succeed by retrying. Shorten the request or ask for a higher quota. See Limits and usage.
Server and provider errors (5xx)
Common setup mistakes
Claude Code ignores my key
Claude Code ignores my key
ANTHROPIC_API_KEY in your shell takes precedence over ANTHROPIC_AUTH_TOKEN. Unset it, restart Claude Code and check /status.It works with curl but not in Cursor
It works with curl but not in Cursor
Cursor calls the base URL from its own servers and sends Claude and Gemini model names to its own keys. Add the
anthropic/ or gemini/ prefix to those model IDs, and keep Override OpenAI Base URL on.Embeddings fail on the gateway
Embeddings fail on the gateway
Embeddings are not on
gateway.langdock.com yet. Call https://api.langdock.com/openai/{region}/v1/embeddings with a key that has the Embedding scope.My agent call fails with insufficient_scopes
My agent call fails with insufficient_scopes
Running an agent needs Run agents on a Model Gateway key, or an Agent scope on a Platform API key, and the call goes to
api.langdock.com, not to the gateway.My key worked yesterday
My key worked yesterday
Check in your account settings whether the key expired, was revoked or was rotated, and whether your spend limit is used up. An admin can also revoke keys or change which scopes personal keys may use. Removed scopes do not come back on that key.