Workflow events
Workflow webhooks tell your systems when runs start, change and finish, and when a step waits for a person. Add endpoints in the console under Settings → Developers → Workflow webhooks. A workspace can have up to 10 endpoints, and each endpoint picks the events it wants.
Webhooks are sent only for live, top-level runs. Test runs from the console and runs started by another workflow (sub-workflows) do not send webhooks.
Events
Section titled “Events”| Event | Sent when |
|---|---|
run.started |
A run has started. |
run.status_updated |
A Status update step set a new customer-facing status (statusCode, statusLabel). |
run.completed |
A run reached an End step. outcome says which one. |
run.failed |
A run failed. |
run.cancelled |
A run was cancelled, from the API or the console. |
task.created |
A step is waiting for a person: an approval, a manual task or an escalation. taskId names the task. |
The console’s Send test button sends a ping event, with data.message instead of run fields. Answer it 2xx like any other event.
Request
Section titled “Request”POST /your/webhook/path HTTP/1.1Content-Type: application/jsonUser-Agent: NuacemOne-Workflows/1.0X-VoiceCX-Event-Id: evt_4c1f0b9e2d7a4e5f8a6b3c2d1e0f9a8bX-VoiceCX-Event-Type: run.completedX-VoiceCX-Timestamp: 1763889302X-VoiceCX-Signature: v1=5d1c3b...e9a0| Header | Meaning |
|---|---|
X-VoiceCX-Event-Id |
The event’s id. The same on every retry and on every endpoint that receives it. Use it to deduplicate. |
X-VoiceCX-Event-Type |
The event name, the same as the payload’s type. |
X-VoiceCX-Timestamp, X-VoiceCX-Signature |
The signature. See Verifying signatures. |
Payload
Section titled “Payload”Every event has the same envelope. data describes the run as it was when the event happened.
{ "id": "evt_4c1f0b9e2d7a4e5f8a6b3c2d1e0f9a8b", "type": "run.completed", "createdAt": "2026-11-23T09:15:02.311000+00:00", "data": { "runId": "run_xxxx", "workflowId": "flw_xxxx", "workflowName": "Appointment reminder", "version": 3, "status": "COMPLETED", "result": null, "outcome": "confirmed", "statusCode": "confirmed", "statusLabel": "Your appointment is confirmed", "correlation": { "patientRef": "P-77" } }}| Field | Meaning |
|---|---|
id |
The event id, as in X-VoiceCX-Event-Id. |
type |
The event name. |
createdAt |
When the event was queued, ISO 8601 in UTC. |
data.runId, data.workflowId, data.workflowName, data.version |
Which run, of which workflow and version. |
data.status |
RUNNING, COMPLETED, FAILED or CANCELLED. |
data.outcome, data.result |
Set when the run has ended; otherwise null. |
data.statusCode, data.statusLabel |
The latest customer-facing status, or empty strings. |
data.correlation |
The correlation the run was started with. Use it to find the record in your system. |
data.taskId |
task.created only: the task to show or decide. |
The body is sent as compact JSON (no spaces). Verify the signature over the bytes you received, not over JSON you re-serialised.
Sample payloads
Section titled “Sample payloads”run.started:
{"id":"evt_0a1b...","type":"run.started","createdAt":"2026-11-23T09:00:00.120000+00:00","data":{"runId":"run_xxxx","workflowId":"flw_xxxx","workflowName":"Appointment reminder","version":3,"status":"RUNNING","result":null,"outcome":null,"statusCode":"","statusLabel":"","correlation":{"patientRef":"P-77"}}}run.status_updated:
{"id":"evt_1b2c...","type":"run.status_updated","createdAt":"2026-11-23T09:05:10.004000+00:00","data":{"runId":"run_xxxx","workflowId":"flw_xxxx","workflowName":"Appointment reminder","version":3,"status":"RUNNING","result":null,"outcome":null,"statusCode":"reminder_sent","statusLabel":"We sent you a reminder","correlation":{"patientRef":"P-77"}}}run.failed:
{"id":"evt_2c3d...","type":"run.failed","createdAt":"2026-11-23T09:06:41.870000+00:00","data":{"runId":"run_xxxx","workflowId":"flw_xxxx","workflowName":"Appointment reminder","version":3,"status":"FAILED","result":null,"outcome":null,"statusCode":"reminder_sent","statusLabel":"We sent you a reminder","correlation":{"patientRef":"P-77"}}}run.cancelled:
{"id":"evt_3d4e...","type":"run.cancelled","createdAt":"2026-11-23T09:07:00.500000+00:00","data":{"runId":"run_xxxx","workflowId":"flw_xxxx","workflowName":"Appointment reminder","version":3,"status":"CANCELLED","result":null,"outcome":null,"statusCode":"","statusLabel":"","correlation":{"patientRef":"P-77"}}}task.created:
{"id":"evt_4e5f...","type":"task.created","createdAt":"2026-11-23T09:02:30.250000+00:00","data":{"runId":"run_xxxx","workflowId":"flw_xxxx","workflowName":"Refund approval","version":1,"status":"RUNNING","result":null,"outcome":null,"statusCode":"","statusLabel":"","correlation":{"orderId":"ORD-5521"},"taskId":"tsk_xxxx"}}To act on a task, read it with GET /public/v1/tasks?runId=run_xxxx and decide it with POST /public/v1/tasks/{taskId}/decide. See Human tasks.
Retries
Section titled “Retries”Your endpoint must answer 2xx. Any other status, a timeout (10 seconds), a connection error or a redirect counts as a failure, and the delivery is tried again after these waits:
| After failed attempt | Wait before the next attempt |
|---|---|
| 1 | 1 minute |
| 2 | 5 minutes |
| 3 | 15 minutes |
| 4 | 1 hour |
| 5 | 3 hours |
| 6 | 6 hours |
| 7 | 12 hours |
| 8 | None. The delivery is marked failed. |
That is 8 attempts over about 22 hours. The console shows each delivery’s status (Pending, Delivered or Failed) and its last error.
Because of retries, the same event can arrive more than once, and events for one run can arrive out of order (a retried run.started may come after run.completed). Deduplicate on X-VoiceCX-Event-Id, and use data.status and createdAt rather than arrival order. If in doubt, read the run with GET /public/v1/runs/{runId}.