Test Flows and Read Runs
Test a flow before you switch it on, then watch what it does. Every run, live or test, is kept in run history step by step: what each step did, what it returned, and why a run failed.
Test a Flow
Runs a saved flow once, straight away, and answers with every step. It works on a paused flow. Test runs do not count toward your monthly flow runs. Scope flows:write.
Test Body
| Parameter | Type | Description |
|---|---|---|
| mode | string | dry: a practice run. Steps that send, write or charge are only pretended. test: a real run. Everything the steps do is done: messages go outDefault: dry |
| input | object | What the trigger would bring in. ai_tool flows: the inputs by key. Event flows: the event's fields. Webhook flows: { body: { ... } }. Payment flows: the payment fields |
| phone | string | Run as this customer: their number with country code (919876543210), so {{ contact.* }} is filled. Anything but digits is removed |
| platform | string | The customer's channel: whatsapp, instagram or messengerDefault: whatsapp |
| Step | Practice run (dry) | Real run (test) |
|---|---|---|
| Send a message, Update the customer, Update the chat | Pretended | Done |
| Razorpay and Cashfree payment links | Pretended | Created |
| Google Sheets: add or update a row | Pretended | Done |
| Google Sheets: find or read rows | Done | Done |
| Google Calendar: book, move or cancel | Pretended | Done |
| Google Calendar: check free times, find appointments | Done | Done |
| Call an API | GET is done; other methods are pretended | Done |
| If / else, Choose a path, Save a value, Reply to the AI | Done | Done |
| Wait | Skipped: the run carries straight on | Skipped: the run carries straight on |
Use mode test only when you mean it
test run sends real messages to real people, writes to real sheets and creates real payment links. Use the default practice run unless the owner asks for a real one.curl -X POST "https://api.sendiee.com/v2.0/flows/6741a2b39d2b4e0011ac1101/test" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": { "category": "Hot", "previousCategory": "Warm" },
"phone": "919876543210"
}'{
"success": true,
"data": {
"mode": "dry",
"status": "success",
"runId": "6741c5d29d2b4e0011ac3301",
"output": {
"simulated": true,
"to": "919800000000",
"from": "917012345678",
"kind": "template",
"templateName": "hot_lead_alert",
"bodyParameters": [
"Meera Nair",
"919876543210"
]
},
"error": null,
"steps": [
{
"id": "alert",
"type": "send_message",
"label": "Tell the owner",
"status": "simulated",
"branch": null,
"error": null,
"output": {
"simulated": true,
"to": "919800000000",
"from": "917012345678",
"kind": "template",
"templateName": "hot_lead_alert",
"bodyParameters": [
"Meera Nair",
"919876543210"
]
}
}
],
"note": "Practice run: messages, sheet and calendar changes and payment links were simulated, not made."
}
}Test Result
| Parameter | Type | Description |
|---|---|---|
| mode | string | dry or test |
| status | string | success, failed or timeout |
| runId | string | The run in run history |
| output | any | What the flow handed back: the Reply to the AI step's { message, data }, or the last step's result |
| error | string | null | Why the run failed |
| steps | array | [{ id, type, label, status, branch, error, output }] in the order they ran. branch is the path an If / else or Choose a path step took |
| note | string | Says whether anything was really done |
A failed step stops the run, unless it has continueOnError: true:
- Test runs are limited to 60 an hour per account, shared with the assistant test chat in the dashboard. Over the limit the answer is
429 RATE_LIMIT. - A test run is not part of a chat.
{{ contact.* }}is filled fromphone, but there is no number the customer wrote to and no inbox chat. Setfromon WhatsApp message steps for atestrun. An Update the chat step is pretended in a practice run and fails in atestrun. - A test run may take up to 120 seconds. The call answers when it ends.
- A missing flow answers
404 NOT_FOUND.
List Runs
Recent runs of all your flows, or of one, newest first. Scope flows:read.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| flowId | string | Only this flow's runs. Not a valid id: 400 BAD_FLOW_ID |
| status | string | Only runs with this status, such as failed |
| mode | string | live, test or dry |
| page | number | Page numberDefault: 1 |
| limit | number | 1 to 50 runs a pageDefault: 20 |
# Failed live runs of one flow
curl "https://api.sendiee.com/v2.0/flows/runs?flowId=6741a2b39d2b4e0011ac1102&status=failed&mode=live" \
-H "Authorization: Bearer YOUR_API_KEY"{
"success": true,
"data": [
{
"runId": "6741c5d29d2b4e0011ac3310",
"flowId": "6741a2b39d2b4e0011ac1102",
"flowName": "Book a store visit",
"status": "failed",
"mode": "live",
"startedBy": "ai",
"error": "Could not understand the time \"after lunch\". Use 10:00 or 10 AM.",
"createdAt": "2026-11-30T04:58:19.000Z",
"durationMs": 412
},
{
"runId": "6741c5d29d2b4e0011ac3309",
"flowId": "6741a2b39d2b4e0011ac1101",
"flowName": "Hot lead alert",
"status": "success",
"mode": "live",
"startedBy": "event",
"error": null,
"createdAt": "2026-11-30T04:41:02.000Z",
"durationMs": 918
}
],
"pagination": {
"total": 2,
"page": 1,
"limit": 20,
"keptForDays": 15
}
}Run Row
| Parameter | Type | Description |
|---|---|---|
| runId | string | The run's id |
| flowId, flowName | string | The flow, with its name when it ran |
| status | string | See Run statuses below |
| mode | string | live, test or dry |
| startedBy | string | What started it. See below |
| error | string | null | Why it failed |
| createdAt | string (ISO 8601) | When it started |
| durationMs | number | null | How long it took. null while it runs or waits |
| pagination.keptForDays | number | How many days runs are kept |
Try It — List Runs
Get a Run, Step by Step
One run with every step it took: its status, the path it chose, its result and its error. Use it to see why a run failed and which step to fix. Scope flows:read.
curl "https://api.sendiee.com/v2.0/flows/runs/6741c5d29d2b4e0011ac3312" \
-H "Authorization: Bearer YOUR_API_KEY"{
"success": true,
"data": {
"runId": "6741c5d29d2b4e0011ac3312",
"flowId": "6741a2b39d2b4e0011ac1102",
"flowName": "Book a store visit",
"flowVersion": 5,
"status": "success",
"mode": "live",
"startedBy": "ai",
"error": null,
"failedStepId": null,
"output": {
"message": "Booked Tue 1 Dec, 11:30 AM for Meera Nair. Confirm the time and share the store address.",
"data": null
},
"createdAt": "2026-11-30T05:02:44.000Z",
"durationMs": 2261,
"steps": [
{
"id": "slot",
"type": "google_calendar",
"label": "Is that time free?",
"status": "success",
"branch": null,
"error": null,
"durationMs": 702,
"output": {
"timezone": "Asia/Kolkata",
"requested": {
"start": "2026-12-01T11:30:00+05:30",
"end": "2026-12-01T12:15:00+05:30",
"label": "Tue 1 Dec, 11:30 AM",
"free": true,
"conflicts": 0
},
"available": true,
"slots": [
{
"start": "2026-12-01T12:15:00+05:30",
"end": "2026-12-01T13:00:00+05:30",
"label": "Tue 1 Dec, 12:15 PM",
"date": "2026-12-01",
"time": "12:15 PM",
"weekday": "Tuesday"
}
],
"slotCount": 1,
"busyCount": 2,
"summary": "Tue 1 Dec, 11:30 AM is available."
}
},
{
"id": "is_free",
"type": "condition",
"label": "Free?",
"status": "success",
"branch": "yes",
"error": null,
"durationMs": 1,
"output": {
"result": true,
"matched": [
0
]
}
},
{
"id": "book",
"type": "google_calendar",
"label": "Book the visit",
"status": "success",
"branch": null,
"error": null,
"durationMs": 1288,
"output": {
"booked": true,
"eventId": "4k2m9q7r1t3v5x8z0b6d",
"htmlLink": "https://www.google.com/calendar/event?eid=NGsybTlxN3IxdDN2NXg4ejBiNmQ",
"meetLink": null,
"start": "2026-12-01T11:30:00+05:30",
"end": "2026-12-01T12:15:00+05:30",
"label": "Tue 1 Dec, 11:30 AM",
"title": "Store visit: Meera Nair",
"timezone": "Asia/Kolkata"
}
},
{
"id": "tag_visit",
"type": "update_contact",
"label": "Tag the customer",
"status": "success",
"branch": null,
"error": null,
"durationMs": 214,
"output": {
"updated": true,
"contactId": "6722e1f09d2b4e0011ab8801",
"fields": {},
"addedTags": [
"Store visit"
],
"removedTags": []
}
},
{
"id": "booked",
"type": "return",
"label": "Tell the AI",
"status": "success",
"branch": null,
"error": null,
"durationMs": 1,
"output": {
"message": "Booked Tue 1 Dec, 11:30 AM for Meera Nair. Confirm the time and share the store address.",
"data": null
}
}
]
}
}Run Object
| Parameter | Type | Description |
|---|---|---|
| runId, flowId, flowName, status, mode, startedBy, error, createdAt, durationMs | various | As in the list |
| flowVersion | number | The flow version the run used |
| failedStepId | string | null | The id of the step that failed |
| output | any | What the flow handed back |
| steps | array | [{ id, type, label, status, branch, error, output, durationMs }] in the order they ran |
Values that look like credentials are shown as ••••••, and very long values are cut short. A run that is older than the history keeps, or not on your account, answers 404 RUN_NOT_FOUND.
Run statuses
| Status | Meaning |
|---|---|
queued | Waiting for a worker to start it |
running | Running now |
waiting | Stopped at a Wait step. It carries on by itself |
resuming | The customer replied or the time came, and it is about to carry on |
success | Finished |
failed | A step failed. error and failedStepId say which and why |
cancelled | The flow was switched off while the run was waiting |
timeout | The run took longer than it was allowed |
Step statuses
| Status | Meaning |
|---|---|
success | The step ran |
simulated | Practice run: the step would have sent, written or charged, and did not. Also every Wait in a test or practice run |
failed | The step failed. error says why |
skipped | The step is switched off (enabled: false) |
waiting | The run is stopped at this Wait step |
Modes
live: a real run started by the flow’s trigger, or a rerun of one. It counts toward your monthly flow runs.test: a real run started as a test. Not counted.dry: a practice run. Nothing was sent, written or charged. Not counted.
startedBy
| Value | Started by |
|---|---|
ai | An AI assistant called the flow in a live chat |
preview | The assistant test chat in the dashboard (a practice run) |
event | A Sendiee event |
webhook | A request to the flow's web address |
payment | A Razorpay or Cashfree report |
schedule | Its schedule |
test | A test or practice run from the API, the MCP server or the flow editor |
step_test | One step tested on its own in the flow editor |
rerun | A past run started again from run history in the dashboard |
How long runs are kept
Runs are kept for 15 days by default. pagination.keptForDays in List Runs gives the number for your account. A run that stops at a Wait step is kept until its wait ends, plus the same number of days. Deleting a flow does not delete its runs; they expire on their own.