Error · HTTP 401
Invalid key
Code invalid_key. Errors are never charged.
When you get it
The API key or sign-in token is missing, revoked or expired. When the key is ours, detail says which: revoked, expired, or the person who created it left the organization.
What to do
Send the key as Authorization: Bearer <key>. Check the key on the API keys page in the app, and create a new one if it was revoked or has expired. A key you revoke there stops working within a minute. In a chat app or other MCP client, sign in again.
Branch on code, never on the wording. If you need help, contact us with the reply's request_id.
