vzaps.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. |
typebots.list(instanceId, options?)
Lists TypeBots configured on the instance.
typebots.create(request)
Creates a TypeBot configuration.
typebotId 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. |
typebots.update(request)
Updates an existing TypeBot. Pass typebotId from create or list.
{ status: "ok" }.
typebots.delete(request)
Removes the configuration and its sessions.
{ status: "ok" } or equivalent message).
typebots.startSession(request)
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. |
typebots.listSessions(instanceId, options?)
Lists active and closed sessions.
opened, paused, closed) per contact/flow.
typebots.pauseSession(request)
Pauses an open session. Pass the session UUID in session.
paused status.

