Connecting Tigerbase
Five ways in, and most people need only the first. Start here so you do not build the wrong one.
Pick the smallest thing that works
| The embed tag | One script tag on your site. The agent appears, answers, and needs nothing else. This is what most customers use and never move past. |
|---|---|
| Tools the agent calls | Your agent reaches into your system mid-conversation — checking an order, looking up a booking. You expose an endpoint; the agent decides when to call it. |
| The server API | Your backend reads conversations and usage, asks an agent, changes its settings and answers the handoff queue — on a scoped secret key, under /v1. |
| The handoff API | Your own helpdesk answers conversations instead of our dashboard, on one agent's integration key. Your staff never leave the tool they already use. |
| Webhooks | We tell your system the moment a handoff is requested, the visitor writes, or it is resolved — signed, so you can prove it was us. |
TipThe usual mistake
Reaching for an API when the embed tag would have done it. If you want a chat bubble on your website that answers from your documents, that is one tag and no code — see Setup. The pages in this section are for when you are connecting Tigerbase to software you already run.
Which direction is the traffic going?
This is the question that decides which credential you need, and it is worth answering before you write anything.
| Browser → Tigerbase | The widget. Carries a publishable key, which is public by design, and is guarded by the domains you allow. |
|---|---|
| Your server → Tigerbase | The server API on a tb_live_ key with scopes, or the older handoff API on one agent's integration key and secret. Both must never touch a browser. |
| Tigerbase → your system | A tool the agent calls, or a handoff webhook. You define the endpoint and its authentication; we send only what you declared, and sign the webhooks. |
CarefulThese credentials are not interchangeable
Putting a server key or an integration secret in a web page hands over your visitors' transcripts. Putting the widget key in your server gets a 401 — we refuse it rather than quietly accepting it. Read Authentication before you copy any key anywhere.
What is not available yet
| The SDKs on npm | Both packages are built — the browser one in Browser SDK and the backend one in Server SDK — and neither is published yet. Until they are, call the endpoints directly or use the embed tag. |
|---|---|
| Outbound webhooks beyond handoff | Handoff events can be delivered to a URL you own. A general event stream is not built. |
| Messaging channels beyond Telegram | Telegram is built — see Channels. WhatsApp, Messenger, Instagram and Discord are not. |