The API key doesn't work
The bad_key error: why it happens and how to fix it.
Code: bad_key. Status: 401.
Why it happens
The key is missing, mistyped or turned off.
How to fix it
Send Authorization: Bearer tm_live_... If the key is lost, make a new one in Settings, then API and MCP.
What the answer looks like
Example answer
{
"error": {
"code": "bad_key",
"message": "A short message about this call.",
"docs": "https://usetotems.com/docs/errors/bad_key"
},
"request_id": "req_..."
}The answer can also have field and help. See all error codes.
Was this useful?
Your answer stays in this browser.
Last checked: 2026-12-03Plain MarkdownSomething wrong? Tell us