client.typebots to integrate TypeBot flows with a VZaps instance.
Common fields on every call:
| Field | Type | Required | Description |
|---|---|---|---|
instance_id | string | Yes | Instance ID. |
instance_token | string | Yes | Instance token. |
client.typebots.list(instance_id, instance_token=...)
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. |
typebot_url | string | Yes | TypeBot base URL. |
public_id | string | Yes | Public flow identifier. |
trigger_type | string | Yes | all, keyword, contains, starts_with, regex, advanced, or none. |
trigger_value | string | Conditional | Trigger text or regex. |
trigger_operator | string | Conditional | Used when trigger_type is advanced. |
priority | number | Yes | Evaluation order. Higher value first. |
expire_in_minutes | number | Yes | Session expiry after inactivity. 0 means no expiry. |
client.typebots.update(...)
Updates an existing TypeBot. Pass typebot_id from create or list.
{ status: "ok" }.
client.typebots.delete(...)
Removes the configuration and its sessions.
{ status: "ok" } or equivalent message).
client.typebots.start_session(...)
Starts a session manually with a contact.
By public_id:
opened status).
By typebot_id:
| Field | Type | Required | Description |
|---|---|---|---|
public_id | string | Conditional | Public flow identifier. Use public_id or typebot_id. |
typebot_id | string | Conditional | Internal TypeBot ID. |
phone | string | Yes | Contact phone. |
message | string | Yes | Initial message sent to the flow. |
push_name | string | No | Contact display name. |
client.typebots.list_sessions(instance_id, instance_token=...)
Lists active and closed sessions.
opened, paused, closed) per contact/flow.
client.typebots.pause_session(...)
Pauses an open session. Pass the session UUID in session.
paused status.

