Skip to main content
GET
Live sessions
Auth: TokenAccount or TokenInstanceRate limit: Global (100/min) • Idempotent: GET yes / POST no

Description

Two operations on the same path:
  • GET /api/typebot/sessions/:instance, lists the live conversations (status opened, paused or held), optionally filtered by ?botId=.
  • POST /api/typebot/sessions/:instance, controls a single conversation: pause, resume, or close it.
When the instance has no Typebot integration or the integration is unavailable, they return 404 / 503 (see the error tables below).

List live sessions

GET /api/typebot/sessions/:instance?botId= Returns every ongoing conversation for the instance. Pass ?botId= to restrict the result to one bot.

Example

All live sessions
Sessions of one bot

Success response

200 OK

Session fields

Errors

Control a session

POST /api/typebot/sessions/:instance Pauses, resumes, or closes a single conversation. The jid is derived from number.

Example

Success response

200 OK

Request body

string
required
Contact number in E.164 format without the + (e.g., 5511999999999). The jid is derived from it.
string
required
Action to apply: pause, resume, or close.
string
UUID of the bot. Optional and informational, the conversation is located by number.

Errors

Path parameters

string
required
Instance name (e.g., suporte).

Query parameters

string
(GET only) UUID of a bot to restrict the listed sessions. Omitted, all the instance’s sessions are returned.

Headers

string
required
TokenAccount or TokenInstance.
string
application/json (required for POST).

Next

List bots

See each bot’s active_sessions count with GET /api/typebot/list/:instance.

Start flow

Open a new conversation with POST /api/typebot/start/:instance.