Error message
Why does the Bublate API answer 401?
The request reached the publisher API without a valid key. The key is missing, mistyped or revoked. Send it in the Authorization header as Bearer bub_ followed by the key. The workspace owner makes keys in the app under API and webhooks. The MCP server also accepts an OAuth sign-in.
The message you see
| Message | Where it shows |
|---|---|
| "Send a valid API key: Authorization: Bearer bub_..." | Publisher API, /api/v1 |
| "Sign in to Bublate: connect with OAuth, or send an API key as Authorization: Bearer bub_..." | MCP server, JSON-RPC error -32001 |
In the API, the answer has HTTP status 401 and a JSON body: {"error": "...", "help": "https://bublate.com/help/errors/api-key-invalid"}.
Why it happens
- Bublate stores only a hash of each key, so a key is shown once, when it is made.
- A revoked key stops at once.
- The MCP server answers with a WWW-Authenticate header that names its sign-in metadata, so an MCP client can start OAuth.
How to fix it
- Make a new key in the app: open the account menu (your email address at the top), then API and webhooks. Only the workspace owner sees it.
- Send the header
Authorization: Bearer bub_...with every request. - Store the key in a secret store. If it leaked, revoke it and make a new one.