Authentication
How MoltMentions API keys work: create, send, rotate and revoke, and how MCP signs you in.
API keys
Every API call is made with a key. A key looks like tsk_live_ followed by a secret. It belongs to your account, so it keeps working when the person who created it leaves. A key is tied to the brands on the account.
- Create a key in the MoltMentions app, under API keys. The secret is shown once. Store it like a password.
- Expiry. A key expires after a set time, one year by default.
- Rotate. A new key can replace an old one, and the old one keeps working for a grace period so you can switch without downtime.
- Revoke. Revoking is immediate.
Send the key
Send the key as a bearer token:
Request
curl https://api.thrivestack.ai/v1/wallet/balance \
-H 'Authorization: Bearer tsk_live_YOUR_KEY'
The x-api-key header also works. Never put a key in a URL or a query string. Both headers are removed from our logs.
When a key fails
| Status | Meaning |
|---|---|
401 | No key, or the key is unknown, expired or revoked. Check the header, then create a new key. |
403 | The key is valid but may not use that brand. |
429 | Too many requests. Wait Retry-After seconds. |
Signing in with MCP
The MCP server signs you in through your browser with OAuth. You do not paste a key into Claude. Clients that cannot open a browser can use a key instead. See MCP setup.
Keep keys safe
- Keep keys on a server or in a secrets store. Do not ship one in a web page or a mobile app.
- Use one key per tool or environment, so you can revoke one without breaking the rest.
- If a key may have leaked, revoke it and create a new one.
- Keys start with
tsk_so secret scanners can find them.