Workflows
Cancel a workflow run
Its waits and timers go; an ended run stays as it is. A send already accepted or a webhook request already handed out is not recalled.
POST
Its waits and timers go; an ended run stays as it is. A send already accepted or a webhook request already handed out is not recalled.
bearerheader
AuthorizationBearer <token>id*stringFormat
uuidSuccess
application/json- response
A run: one contact (none for a scheduled run without a segment) through one version.
contact_id?|Format
uuidcreated_at*stringcurrent_step?|The step it is at (none once ended).
end_reason?string|nullended_at?string|nullid*stringFormat
uuidobject*stringstatus*stringrunning, waiting, completed, canceled or failed.
steps?array<>|Its timeline, in single reads only.
trigger*What started it (the event, the signal, the schedule's fire, the API's data).
updated_at*stringversion*integerFormat
int32workflow_id*stringFormat
uuidcurl -X POST 'https://api.exx.sh/workflow-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel'Example Response
{ "contact_id": "f245e2a3-e141-4d41-912c-b1c1f5bd5598", "created_at": "string", "current_step": "string", "end_reason": "string", "ended_at": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "object": "string", "status": "string", "steps": [ { "execution": 0, "finished_at": "string", "kind": "string", "outcome": "string", "result": {}, "started_at": "string", "status": "string", "step_id": "string" } ], "trigger": {}, "updated_at": "string", "version": 0, "workflow_id": "03e70e31-d7a4-4401-a629-6a4b6096cdfe"}