Create Test Run
Execute a workflow without placing a real phone call
Creates a test execution of the workflow. No outbound call is placed — this is useful for validating agent behavior, checking prompt outputs, and testing tool integrations before going live.
POST
/api/v1/workflow/{workflow_id}/runsParameters#
| Name | Located in | Type | Required | Description |
|---|---|---|---|---|
workflow_id | path | integer | Yes | — |
Request body#
| Field | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | — |
name | string | Yes | — |
Example request body:
{
"mode": "string",
"name": "Example Name"
}Responses#
200 — Successful Response
{
"id": 0,
"workflow_id": 0,
"name": "Example Name",
"mode": "string",
"created_at": "2026-01-15T10:30:00Z",
"definition_id": 0,
"initial_context": {}
}404 — Not found
422 — Validation Error
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}