$vzaps->typeBots() to connect TypeBot flows to a VZaps instance.
Common fields on all calls:
| Field | Type | Required | Description |
|---|---|---|---|
instanceId | string | Yes | Instance ID. |
instanceToken | string | Yes | Instance token. |
typeBots()->list($instanceId, $instanceToken = null)
Lists TypeBots configured on the instance.
typeBots()->create($request)
Creates a TypeBot configuration.
typebot_id for later updates.
Main payload fields:
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes | Enables or disables the TypeBot during trigger evaluation. |
description | string | Yes | Display name for identification. |
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 | Expires session after inactivity. 0 means no expiration. |
typeBots()->update($request)
Updates an existing TypeBot. Provide typebotId returned by create or list.
{ status: "ok" }.
typeBots()->delete($request)
Removes the configuration and associated 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, $instanceToken = null)
Lists active and closed sessions.
opened, paused, closed) per contact/flow.
typeBots()->pauseSession($request)
Pauses an open session. Use the session UUID in session.
paused status.

