API keys
Calling Tigerbase from your own server — and the one distinction that matters.
You have two kinds of key, and they are not interchangeable
| The widget key | The one in your embed snippet. It is publishable — it sits in the source of a public page and anybody can read it. That is fine, because it can only do what a visitor can do, and only from the domains you allowed. |
|---|---|
| An API key — tb_live_… | Created on the API keys page. It is secret. Anybody holding one can act on your App within its scopes, from anywhere, with no domain check — because a server has no domain to check. It belongs in a server’s configuration and never in a browser. |
CarefulNever put an API key in front-end code
Not in JavaScript, not in a mobile app, not in a config file your build ships to the browser. Anything a visitor can download, a visitor can read. If one ever reaches a public page, revoke it — that takes effect immediately.
Creating one
- 1
Name it after where it will live
“CI”, “Zapier”, “the billing server”. Only you see this, and it is how you decide which key to revoke later without guessing. - 2
Grant only what it needs
Four scopes: read, chat, write, handoff. A key that can do everything is a key whose loss costs everything. - 3
Confirm it is you
The dashboard asks for your password, or a two-factor code if you have it on. A key outlives the session that made it, so an open laptop alone is not enough to mint one. - 4
Copy it — it is shown once
We keep only a hash. If you lose it there is no way to recover it; revoke that one and make another.
TipA key can do no more than you can
read and chat need permission to view agents, write needs permission to edit them, and handoff needs permission to reply in the inbox. A member who asks for a scope beyond their own role is refused — a key is never a way round it.Using it
Send it as a bearer token. Every route lives under /v1, and that version is part of the promise — we will not change what /v1 means underneath you.
bash
curl https://api.tigerbase.cloud/v1/agents \
-H "Authorization: Bearer $TIGERBASE_KEY"200 OK
[
{ "publicId": "a1b2c3d4…", "name": "Returns Desk", "isActive": true, "createdAt": "2026-10-01T09:12:44.000Z" }
]Every route, and the scope it needs
| GET /v1/agents | Your agents. read. |
|---|---|
| GET /v1/agents/:id/conversations | Recent conversations for one agent, newest first. read. |
| GET /v1/agents/:id/conversations/:visitor | One conversation with its messages. read. |
| GET /v1/usage | What the account has spent, against the plan. read. |
| POST /v1/agents/:id/chat | Ask an agent. chat. |
| POST /v1/agents | Create an agent. write. |
| PATCH /v1/agents/:id | Change an agent's settings. write. |
| DELETE /v1/agents/:id | Hide an agent for thirty days. write. |
| GET /v1/handoffs | The handoff queue. handoff. |
| GET /v1/handoffs/:id | One handoff with its transcript. handoff. |
| POST /v1/handoffs/:id/reply | Answer as a person. handoff. |
| POST /v1/handoffs/:id/resolve | Close it. handoff. |
Each route is documented, with examples in every language, under Server SDK.
NoteOne key, one App
A key belongs to the App it was created in. Agents, conversations and handoffs from your other Apps answer
404 to it, the same as things that do not exist.Rotating a key
This is why there can be more than one. Create the new key, move your callers onto it, then revoke the old one. Each step is reversible and nothing is down in between — which is not true of a single credential you have to replace in place.
NoteRevoked keys stay listed
Revoking stops a key working immediately, but the row remains. “Which key was that, and when did we stop it?” is the question asked after something goes wrong, and a deleted row answers none of it. The list also shows when each key was last used, which is how you tell a key still in service from one somebody forgot.