The server SDK
BetaYour agents and their conversations, from your own backend, on a scoped secret key.
lib/tigerbase.ts
import { TigerbaseServer } from "@tigerbase/server";
export const tigerbase = new TigerbaseServer({
apiKey: process.env.TIGERBASE_KEY!,
});Which package is this
| @tigerbase/client | Runs in a browser on a publishable key, guarded by your allowed domains. For building a chat interface. |
|---|---|
| @tigerbase/server | Runs on your backend on a secret key, guarded by the key's scopes. For everything you build around one. |
They are not interchangeable, and the difference is not stylistic. The secret key reaches every agent in its App — not one agent, and not limited to the sites you listed.
CarefulThis key must never reach a browser
Bundled into a page it is readable by every visitor, and nothing errors when that happens — it works, and the credential is in your page source. The package refuses to start if it finds a browser, and it throws when you construct it rather than on the first request, so the mistake surfaces in development.
The mistake is easier than it sounds: the two packages have almost the same shape, and an import can move from a server file into a component in one refactor.
The mistake is easier than it sounds: the two packages have almost the same shape, and an import can move from a server file into a component in one refactor.
Your first call
The SDK is a thin layer over a plain HTTP API under /v1. Everything it does, you can do with curl — which is also the quickest way to check that a new key works.
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"
}
]What you would build with it
| A screen in your own admin | What your customers have been asking this week, inside the tool your team already uses. |
|---|---|
| A report | Volume by agent, by channel, over time — joined against your own data, which is the half we do not have. |
| An export | A nightly job that writes conversations into your warehouse. |
| Your agent behind your own queue | A ticket arrives, you ask the agent, you post the answer back — inside the helpdesk your team already uses. See Asking. |
What it can do
Every method, the route it calls, and the scope the key needs for it. The scope is checked on the server, so a key without it is refused whichever way you call.
Reading — read
| agents() | GET /v1/agents |
|---|---|
| conversations(agent, { limit, since, until }) | GET /v1/agents/:publicId/conversations |
| conversation(agent, visitor) | GET /v1/agents/:publicId/conversations/:visitor |
| usage({ from, to }) | GET /v1/usage |
Asking — chat
| ask(agent, message, { conversationId }) | POST /v1/agents/:publicId/chat |
|---|
The handoff queue — handoff
| handoffs({ status }) | GET /v1/handoffs |
|---|---|
| handoff(id) | GET /v1/handoffs/:id |
| reply(id, message, { authorName }) | POST /v1/handoffs/:id/reply |
| resolve(id) | POST /v1/handoffs/:id/resolve |
Changing agents — write
| createAgent(name, { description }) | POST /v1/agents |
|---|---|
| updateAgent(agent, settings) | PATCH /v1/agents/:publicId |
| deleteAgent(agent, name) | DELETE /v1/agents/:publicId |
NoteThe version is still 0.x
Every scope the dashboard grants reaches a route. The surface will keep growing, and until it stops it is not a promise. Anything the package does not wrap yet is a
fetch away, with the same key.Requirements
| Node | 18 or later — it uses the built-in fetch. |
|---|---|
| Dependencies | None. 2.1 KB gzipped. |
| Types | Included. Written for hover, not just for the compiler. |