client.typebots() to integrate TypeBot flows with a VZaps instance.
Common fields on every call:
| Field | Type | Required | Description |
|---|---|---|---|
instanceId | string | Yes | Instance ID. |
instanceToken | string | Yes | Instance token. |
client.typebots().list(...)
Lists TypeBots configured on the instance.
client.typebots().create(...)
Creates a TypeBot configuration.
typebot_id for later updates.
Main payload fields:
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes | Enables or disables trigger evaluation. |
description | string | Yes | Display name for the configuration. |
typebotUrl | string | Yes | TypeBot base URL. |
publicId | string | Yes | Public flow identifier. |
triggerType | string | Yes | all, keyword, contains, starts_with, regex, advanced, or none. |
triggerValue | string | Conditional | Trigger text or regex. |
triggerOperator | string | Conditional | Used when triggerType is advanced. |
priority | number | Yes | Evaluation order. Higher value first. |
expireInMinutes | number | Yes | Session expiry after inactivity. 0 means no expiry. |
client.typebots().update(...)
Updates an existing TypeBot. Pass typebotId from create or list.
{ status: "ok" }.
client.typebots().delete(...)
Removes the configuration and its sessions.
{ status: "ok" } or equivalent message).
client.typebots().startSession(...)
Starts a session manually with a contact.
By publicId:
opened status).
By typebotId:
| Field | Type | Required | Description |
|---|---|---|---|
publicId | string | Conditional | Public flow identifier. Use publicId or typebotId. |
typebotId | string | Conditional | Internal TypeBot ID. |
phone | string | Yes | Contact phone. |
message | string | Yes | Initial message sent to the flow. |
pushName | string | No | Contact display name. |
client.typebots().listSessions(...)
Lists active and closed sessions.
opened, paused, closed) per contact/flow.
client.typebots().pauseSession(...)
Pauses an open session. Pass the session UUID in session.
paused status.

