Flows API
Build visual automation workflows that trigger on events (incoming message, webhook, schedule) and execute multi-step logic — send messages, call APIs, branch on conditions, invoke AI agents, and more. Base path:/v1/flows
Create Flow
POST /v1/flows
Create a new automation flow.
Flow name
What starts this flow:
inbound_message, webhook, schedule, api, eventFlow definition — a JSON object representing the node graph from the visual builder. Contains nodes, edges, and configuration for each step.
List Flows
GET /v1/flows
Retrieve all flows with cursor-based pagination.
Cursor for pagination
Number of results per page (max 100)
Get Flow
GET /v1/flows/{id}
Retrieve a flow by ID, including its full definition.
Flow ID (e.g.,
flw_abc123)Update Flow
PUT /v1/flows/{id}
Update a flow’s name, trigger, or definition. Each update increments the version number.
Flow ID
Updated flow name
Updated trigger type
Updated flow definition (node graph)
Expected current version (for optimistic concurrency control). The update is rejected if the stored version does not match.
Delete Flow
DELETE /v1/flows/{id}
Delete a flow. Running executions are allowed to complete but no new executions will start.
Flow ID
204 No Content
List Executions
GET /v1/flows/executions
Retrieve flow execution logs across all flows, ordered by most recent.
Cursor for pagination
Number of results per page (max 100)