Handoff
Your staff answer in the helpdesk they already use, instead of ours.
const waiting = await tigerbase.handoffs({ status: "pending" });
for (const h of waiting) {
const { transcript } = await tigerbase.handoff(h.id);
const ticket = await createTicket({ from: h.visitor, transcript });
// …your agent answers in your tool, and you post it back:
await tigerbase.reply(h.id, ticket.firstReply, { authorName: ticket.agent });
}NoteThis is not a notification channel
The queue
GET /v1/handoffs, newest first, at most 100. Optional status.
curl "https://api.tigerbase.cloud/v1/handoffs?status=pending" \
-H "Authorization: Bearer $TIGERBASE_KEY"[
{
"id": 7,
"status": "pending",
"visitor": "tb-bba2ef31-…",
"channel": "web",
"reason": "Refund not processed",
"person": { "name": "Layla", "email": "layla@example.com" },
"createdAt": "2026-10-31T09:30:59.576Z",
"lastMessageAt": "2026-10-31T09:31:40.102Z"
}
]WarningThe default is every status, including resolved
| id | Pass it to handoff(), reply() and resolve(). |
|---|---|
| status | pending until somebody answers, active once they have, resolved when closed — or expired, when nobody answered within an hour and the agent took the conversation back. |
| visitor | A bare browser id for the widget, qualified by channel otherwise — the same form the conversation routes use. |
| channel | Where the visitor arrived: web, telegram, api… |
| reason | Why the agent handed over, when it said. |
| person | name and email, if the visitor told us. Both often null. |
| createdAt / lastMessageAt | ISO timestamps. |
Reading one
GET /v1/handoffs/:id — the same fields, plus the transcript.
curl https://api.tigerbase.cloud/v1/handoffs/7 \
-H "Authorization: Bearer $TIGERBASE_KEY"{
"id": 7,
"status": "pending",
"visitor": "tb-bba2ef31-…",
"channel": "web",
"reason": "Refund not processed",
"person": { "name": "Layla", "email": "layla@example.com" },
"createdAt": "2026-10-31T09:30:59.576Z",
"lastMessageAt": "2026-10-31T09:31:40.102Z",
"transcript": [
{ "role": "user", "content": "where is my refund", "at": "…" },
{ "role": "model", "content": "Let me check that…", "at": "…" }
]
}The transcript is the conversation that led here — what the visitor asked and what the agent said before giving up. Put it in the ticket. A person who has to ask the customer to start again has been handed a worse conversation than if the agent had never tried. role is user for the visitor, model for the agent and agent for a person.
Answering
POST /v1/handoffs/:id/reply with a message (1–4000 characters) and an optional authorName (up to 80).
curl -X POST https://api.tigerbase.cloud/v1/handoffs/7/reply \
-H "Authorization: Bearer $TIGERBASE_KEY" \
-H "Content-Type: application/json" \
-d '{"message":"I have refunded that order.","authorName":"Sam"}'{
"delivered": true,
"message": {
"role": "agent",
"content": "I have refunded that order.",
"timestamp": "09:34 AM",
"at": "2026-10-31T09:34:12.415Z",
"authorName": "Sam"
}
}The reply reaches the visitor over whichever channel they arrived on — the widget's live socket, or a messaging platform's API — through the same path a reply from our dashboard takes. Use at for anything you store or sort by; timestamp is a display string.
TipUse the name of whoever is typing
authorName defaults to “Support”. Twice in a row that reads as a bot, which is exactly the thing the visitor asked to stop talking to.Closing it
POST /v1/handoffs/:id/resolve. No body.
curl -X POST https://api.tigerbase.cloud/v1/handoffs/7/resolve \
-H "Authorization: Bearer $TIGERBASE_KEY"{ "id": 7, "status": "resolved" }CarefulAn abandoned handoff is worse than no handoff
Replying after it is closed
Replying to a resolved conversation is refused with bad_request. Reopening is deliberate rather than a side effect of somebody typing into an old ticket. An expired one is different: replying picks it back up.
Scope
All four need handoff. Mint a key with it for your helpdesk integration and nothing else — a key that can read every conversation your customers have had is not a key to reuse for a nightly report.
TipThe queue is the key's own App
404, the same as one that does not exist, so ids cannot be probed.