Manage Flows
These endpoints read and change your flows, check a flow without saving it, return the building guide, and look up the ids some steps need. The flow document itself is described in the flow document reference.
Scopes and access
POST /flows/validate need flows:read. Creating, updating, switching on or off and deleting need flows:write. Accounts outside the Flows rollout get 403 FLOWS_NOT_ENABLED. Credentials in flows always come back as ••••••.List Flows
Your flows, most recently changed first. Rows hold no steps and no credentials: use Get a flow for those.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| search | string | Part of the flow name, any case. Up to 80 characters |
| status | string | active or paused. Any other value is ignored |
| page | number | Page numberDefault: 1 |
| limit | number | 1 to 100 flows a pageDefault: 20 |
curl "https://api.sendiee.com/v2.0/flows?status=active&limit=20" \
-H "Authorization: Bearer YOUR_API_KEY"{
"success": true,
"data": [
{
"flowId": "6741a2b39d2b4e0011ac1101",
"name": "Hot lead alert",
"description": "Tells the owner on WhatsApp when a lead turns Hot.",
"status": "active",
"trigger": "event",
"version": 3,
"stepCount": 1,
"autoPaused": false,
"stats": {
"totalRuns": 42,
"failedRuns": 1,
"lastRunAt": "2026-11-29T10:41:07.000Z",
"lastRunStatus": "success",
"blockedRuns": 0,
"lastBlockedAt": null
},
"assistantTools": [],
"updatedAt": "2026-11-30T05:31:52.000Z"
},
{
"flowId": "6741a2b39d2b4e0011ac1102",
"name": "Book a store visit",
"description": "Books a visit to the Kesari Loom store in Google Calendar, or offers the next free times.",
"status": "active",
"trigger": "ai_tool",
"version": 5,
"stepCount": 6,
"autoPaused": false,
"stats": {
"totalRuns": 118,
"failedRuns": 3,
"lastRunAt": "2026-11-30T04:58:19.000Z",
"lastRunStatus": "success",
"blockedRuns": 0,
"lastBlockedAt": null
},
"assistantTools": [
"book_a_store_visit"
],
"updatedAt": "2026-11-27T12:40:03.000Z"
}
],
"pagination": {
"total": 2,
"page": 1,
"limit": 20,
"totalPages": 1,
"hasMore": false
}
}Flow Row
| Parameter | Type | Description |
|---|---|---|
| flowId | string | The flow's id |
| name | string | The flow's name |
| description | string | What it does |
| status | string | active or paused |
| trigger | string | The trigger type: ai_tool, event, webhook, payment or schedule |
| version | number | Goes up by one on every save |
| stepCount | number | Steps in the flow, counting steps inside paths |
| autoPaused | boolean | true when Sendiee switched it off after repeated failures |
| stats | object | Live runs only: totalRuns, failedRuns, lastRunAt, lastRunStatus, and blockedRuns (refused because the month's runs were used up) with lastBlockedAt |
| assistantTools | string[] | Names of the assistant tools that run this flow |
| updatedAt | string (ISO 8601) | When it was last changed |
Try It — List Flows
Get a Flow
One flow in full, with its steps in plain sentences in inWords. Show inWords to people instead of the raw JSON. Keep version: you send it back when you update.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| flowId | string | The flow's id from List Flows |
curl "https://api.sendiee.com/v2.0/flows/6741a2b39d2b4e0011ac1103" \
-H "Authorization: Bearer YOUR_API_KEY"{
"success": true,
"data": {
"flowId": "6741a2b39d2b4e0011ac1103",
"name": "Website enquiry",
"description": "Saves enquiries from the kesariloom.in contact form and sends them to the CRM.",
"status": "active",
"version": 4,
"trigger": {
"type": "webhook",
"config": {
"responseMode": "ack",
"contactField": "{{ body.phone }}",
"platform": "whatsapp",
"verify": {
"type": "none"
},
"secret": "••••••"
}
},
"inputs": [],
"steps": [
{
"id": "save_row",
"type": "google_sheets",
"label": "Save the enquiry",
"enabled": true,
"continueOnError": false,
"config": {
"action": "append_row",
"connectionId": "6741f0a19d2b4e0011ac0a01",
"spreadsheetId": "1kQ7vR2xLm9TbW4zYp8NcE3sHd6FjU0aGi5oKe1qVt2",
"sheetName": "Enquiries",
"columns": [
{
"column": "Date",
"value": "{{ now.date }}"
},
{
"column": "Name",
"value": "{{ input.body.name }}"
},
{
"column": "Phone",
"value": "{{ input.body.phone }}"
},
{
"column": "Looking for",
"value": "{{ input.body.saree }}"
},
{
"column": "Status",
"value": "New"
}
]
}
},
{
"id": "crm_push",
"type": "http_request",
"label": "Send the lead to the CRM",
"enabled": true,
"continueOnError": true,
"config": {
"method": "POST",
"url": "https://crm.kesariloom.in/api/leads",
"headers": [
{
"key": "Content-Type",
"value": "application/json",
"enabled": true
}
],
"auth": {
"type": "bearer",
"token": "••••••"
},
"bodyMode": "json",
"body": {
"name": "{{ input.body.name }}",
"phone": "{{ input.body.phone }}",
"source": "Website"
},
"timeoutSec": 15,
"failOnError": true
}
}
],
"settings": {
"answerMode": "background",
"timeoutSec": 20,
"maxSteps": 50
},
"inWords": [
"When a request reaches the flow's web address:",
"1. Add a row to the Google Sheet tab “Enquiries”: Date = ‹now date›, Name = ‹body name›, Phone = ‹body phone›, Looking for = ‹body saree›, Status = New",
"2. Send a POST request to crm.kesariloom.in"
],
"assistantTools": [],
"autoPaused": false,
"stats": {
"totalRuns": 42,
"failedRuns": 1,
"lastRunAt": "2026-11-29T10:41:07.000Z",
"lastRunStatus": "success",
"blockedRuns": 0,
"lastBlockedAt": null
},
"createdAt": "2026-11-21T09:02:44.000Z",
"updatedAt": "2026-11-28T06:12:30.000Z",
"webhook": "Its address is shown on the flow page in the dashboard."
}
}Flow Object
| Parameter | Type | Description |
|---|---|---|
| flowId, name, description, status, version | various | As in the list |
| trigger | object | { type, config }. Webhook secrets are masked |
| inputs | array | ai_tool flows: what the assistant collects |
| steps | array | The steps, with defaults filled in. Credentials are masked |
| settings | object | { answerMode, timeoutSec, maxSteps } |
| inWords | string[] | The trigger, then one line per step. Steps inside paths are indented |
| assistantTools | array | [{ id, name, toolId, isActive }]: the assistant tools that run this flow. id is what Disconnect takes as toolId |
| autoPaused, stats | various | As in the list |
| createdAt, updatedAt | string (ISO 8601) | When it was made and last changed |
| webhook | string | Webhook flows only: a note that the address is on the flow's page in the dashboard. The API never returns the address, because it contains the secret |
Check a Flow Without Saving
Runs every check that saving runs and saves nothing. Send the flow document as the body, or as { "flow": { ... } }. The answer is always 200: look at ok. Problems with the document’s shape (missing fields, wrong types, bad step ids) come back first. Once the shape is right, the trigger, step and reference checks run, and then template steps are checked against your approved templates. Fix, check again, repeat. Scope flows:read.
curl -X POST "https://api.sendiee.com/v2.0/flows/validate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d @hot-lead-alert.json{
"success": true,
"data": {
"ok": false,
"errors": [
{
"path": "trigger.config",
"message": "Choose at least one day of the week"
},
{
"path": "steps[1].config",
"message": "Wait: set how long to wait"
}
]
}
}Try It — Check a Flow
Create a Flow
Saves a new flow. Send the flow document as the body, or as { "flow": { ... } }. It is saved switched off (status: "paused") unless you send "active". Leave it off, practice-run it, and switch it on when the result is right.
curl -X POST "https://api.sendiee.com/v2.0/flows" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Hot lead alert","description":"Tells the owner on WhatsApp when a lead turns Hot.","trigger":{"type":"event","config":{"eventType":"contact.lead_categorized","conditions":{"logic":"AND","rules":[{"field":"data.category","operator":"eq","value":"Hot"}]}}},"steps":[{"id":"alert","type":"send_message","label":"Tell the owner","config":{"channel":"whatsapp","from":"917012345678","to":"919800000000","kind":"template","templateName":"hot_lead_alert","language":"en","bodyParameters":["{{ contact.name }}","{{ contact.phone }}"]}}],"settings":{"answerMode":"background"}}'{
"success": true,
"data": {
"flowId": "6741a2b39d2b4e0011ac1101",
"name": "Hot lead alert",
"description": "Tells the owner on WhatsApp when a lead turns Hot.",
"status": "paused",
"version": 1,
"trigger": {
"type": "event",
"config": {
"eventType": "contact.lead_categorized",
"conditions": {
"logic": "AND",
"rules": [
{
"field": "data.category",
"operator": "eq",
"value": "Hot"
}
]
}
}
},
"inputs": [],
"steps": [
{
"id": "alert",
"type": "send_message",
"label": "Tell the owner",
"enabled": true,
"continueOnError": false,
"config": {
"channel": "whatsapp",
"from": "917012345678",
"to": "919800000000",
"kind": "template",
"templateName": "hot_lead_alert",
"language": "en",
"bodyParameters": [
"{{ contact.name }}",
"{{ contact.phone }}"
]
}
}
],
"settings": {
"answerMode": "background",
"timeoutSec": 20,
"maxSteps": 50
},
"inWords": [
"When contact.lead_categorized, if category is “Hot”:",
"1. Send the WhatsApp template “hot_lead_alert” to 919800000000"
],
"assistantTools": [],
"autoPaused": false,
"stats": {
"totalRuns": 0,
"failedRuns": 0,
"lastRunAt": null,
"lastRunStatus": null,
"blockedRuns": 0,
"lastBlockedAt": null
},
"createdAt": "2026-11-30T05:20:11.000Z",
"updatedAt": "2026-11-30T05:20:11.000Z"
}
}- A flow with no steps can be saved, but always as paused.
- An
ai_toolflow does nothing until you give it to an assistant. See Flows in AI assistants. - A webhook flow gets its web address when it is saved. Copy it from the flow’s page in the dashboard.
Errors
details lists up to 20 problems. When the only problem is a template step, message is the first template problem.
Update a Flow
Replaces the flow’s document: name, description, trigger, inputs, steps and settings. Send the whole document as you got it from Get a flow, with your change made. A field you leave out goes back to its default, so inputs left out becomes empty.
- Send
versionas you read it. If the flow was saved since, the answer is409 VERSION_CONFLICTand nothing changes. Get it again, reapply your change and save. - Masked credentials (
••••••) keep their stored values. Send a new value to replace one. statusis kept when you leave it out. Sendingactivealso clearsautoPaused.- Saving raises
versionby one. Runs already waiting at a Wait step finish with the steps they started with. - For an
ai_toolflow, the assistant tool that runs it picks up the new inputs and answer mode at once.
const base = 'https://api.sendiee.com/v2.0/flows/6741a2b39d2b4e0011ac1101'
const headers = { Authorization: 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }
// Read, change, write. Retry once if someone saved in between.
for (let attempt = 0; attempt < 2; attempt++) {
const { data: flow } = await (await fetch(base, { headers })).json()
flow.steps[0].config.to = '919811111111' // the new owner number
const { flowId, inWords, assistantTools, autoPaused, stats, createdAt, updatedAt, ...doc } = flow
const res = await fetch(base, { method: 'PUT', headers, body: JSON.stringify(doc) })
if (res.status !== 409) {
const payload = await res.json()
if (!res.ok) throw new Error(`${payload.code}: ${payload.message}`)
console.log('Saved version', payload.data.version)
break
}
}A successful update answers 200 with the flow, in the same shape as Get a flow. A missing flow answers 404 FLOW_NOT_FOUND, and a document with errors 422 VALIDATION.
Switch a Flow On or Off
active switches the flow on; paused switches it off. Switching on also clears autoPaused.
An active flow runs by itself
curl -X PATCH "https://api.sendiee.com/v2.0/flows/6741a2b39d2b4e0011ac1101/status" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "active" }'{
"success": true,
"data": {
"flowId": "6741a2b39d2b4e0011ac1101",
"status": "active"
}
}Any other status answers 400 BAD_STATUS. A missing flow answers 404 NOT_FOUND.
Delete a Flow
Deletes the flow and stops its schedule. Assistant tools that ran it are switched off. Its run history stays until it expires. This cannot be undone.
curl -X DELETE "https://api.sendiee.com/v2.0/flows/6741a2b39d2b4e0011ac1101" \
-H "Authorization: Bearer YOUR_API_KEY"{
"success": true,
"data": {
"deleted": true
}
}Get the Building Guide
Everything needed to write a flow document: the trigger types, every step type, a plain guide to each one’s settings and results, the variables, a complete example, and notes. AI agents should read it before they create or update a flow. Scope flows:read.
{
"success": true,
"data": {
"triggers": [
"ai_tool",
"event",
"webhook",
"payment",
"schedule"
],
"steps": [
{
"type": "google_sheets",
"label": "Google Sheets",
"description": "Add, find, update or read rows in a Google Sheet.",
"branches": false
},
{
"type": "send_message",
"label": "Send Message",
"description": "Send a WhatsApp text or template, or an Instagram or Messenger message, to the customer or anyone.",
"branches": false
},
{
"type": "condition",
"label": "If / Else",
"description": "Branch the flow on a condition.",
"branches": true
}
],
"guide": {
"trigger_schedule": "Trigger \"schedule\": the flow runs at set times. There is no customer: a message step needs \"to\" set to a number ...",
"send_message": "Step \"send_message\": WhatsApp, Instagram or Messenger. ..."
},
"variables": [
{
"key": "input",
"label": "Collected inputs",
"hint": "input.<field>"
},
{
"key": "contact.name",
"label": "Contact name"
},
{
"key": "steps",
"label": "Earlier step outputs",
"hint": "steps.<step id>.<output>"
}
],
"example": {
"name": "Hot lead alert",
"trigger": {
"type": "event",
"config": {
"eventType": "contact.lead_categorized"
}
},
"steps": []
},
"notes": [
"Look up ids before using them: teams, agents and inbox statuses with GET /flows/inbox, ...",
"A WhatsApp template step must fill exactly as many blanks as the template has; saving checks it.",
"Credentials are always returned masked (••••••). Send them back unchanged to keep the stored values."
]
}
}The guide texts are shared with Sendiee’s own assistant and name some lookups by its tool names, such as list_inbox and list_templates. With the API, use GET /v2.0/flows/inbox, GET /v2.0/flows/accounts, GET /v2.0/templates and GET /v2.0/assistants. Google and payment connections are made on the Connections page in the dashboard; there is no endpoint that lists them, so copy a connectionId from a flow that already uses it.
Try It — Building Guide
Teams, Agents and Inbox Statuses
The ids an Update the chat step needs: teams and agents it can assign to, and your inbox statuses. Agents’ email addresses are not returned. Scope flows:read.
{
"success": true,
"data": {
"teams": [
{
"teamId": "671f0a2b9d2b4e0011ab4401",
"name": "Sales"
},
{
"teamId": "671f0a2b9d2b4e0011ab4402",
"name": "Customer care"
}
],
"agents": [
{
"agentId": "6708b2d1c93b2e0012aa1001",
"name": "Kavya Reddy",
"role": "Agent",
"teams": [
{
"id": "671f0a2b9d2b4e0011ab4401",
"name": "Sales"
}
]
},
{
"agentId": "6708b2d1c93b2e0012aa1002",
"name": "Sneha Iyer",
"role": "Agent",
"teams": [
{
"id": "671f0a2b9d2b4e0011ab4402",
"name": "Customer care"
}
]
}
],
"statuses": [
{
"statusKey": "pending",
"label": "Pending"
},
{
"statusKey": "open",
"label": "Open"
},
{
"statusKey": "resolved",
"label": "Resolved"
}
],
"teamboxConfigured": true
}
}- An assign step needs a
teamId. AnagentIdis optional and must be on that team; each agent lists its teams. - A
set_statusstep takes astatusKeyfromstatuses, including your own statuses. - When the inbox does not answer, the call fails with
502 FLOWS_FAILED. Try again.
Try It — Inbox Lookups
Instagram Accounts and Facebook Pages
The accounts a Send a message step can send from on Instagram and Messenger. Put an id in the step’s from. Scope flows:read.
{
"success": true,
"data": {
"instagram": [
{
"id": "17841400000000001",
"name": "@kesariloom"
}
],
"messenger": [
{
"id": "104500000000001",
"name": "Kesari Loom"
}
]
}
}