Cancel a run
End a run.
End a run. A call it asked for and not yet dialled is cancelled; a call in progress is never cut.
Rate limit: 2000 requests per minute per organization, counted together with every endpoint that has no stricter limit of its own. Exceeding it returns 429 with Retry-After; the X-RateLimit-* response headers report your remaining allowance on every call.
v2/workflow-runs/{run_id}/cancelAuthorization
AuthorizationRequiredBearer <token>
Your Graine API key. Create one in the dashboard under Developers, or via POST /v2/api-keys. Send it as Authorization: Bearer <key>.
In: header
Path Parameters
run_idRequiredRun Id
The run's id.
Response Body
200
Ended.
idRequiredId
The run's id.
workflow_idRequiredWorkflow Id
Its workflow.
versionRequiredVersion
The version it runs.
campaign_idCampaign Id | null
Its campaign, if any.
sourceSource | null
How it started: dashboard | api | campaign | trigger.
statusRequiredStatus
queued | running | waiting | ended | failed | cancelled.
nodeNode | null
The step it is on.
outcomeOutcome | null
success | failure | neutral, once ended.
labelLabel | null
The ending's label.
termination_reasonTermination Reason | null
Why it ended.
warningsRequiredWarnings
Optional values that were missing.
reference_idReference Id | null
The contact's reference.
waitAny properties in WorkflowRunWait
created_atCreated At | null
When it started.
updated_atUpdated At | null
When it last moved.
ended_atEnded At | null
When it ended.
last_eventLast Event | null
Its latest step, on a list.
variablesRequiredVariables
entry, run, call, extraction, response, callback, state, node.
timelineRequiredTimeline
Every step, oldest first (the last 500).
401
1100 — missing, unknown or inactive API key. 1101 — a browser session token was presented instead of an API key.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
403
1102 — the key is valid but lacks the scope this endpoint requires, or names another organization. GET /v2/scopes reports what a key holds.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
404
1200 — no such resource in your organization. A resource belonging to another organization answers 404, never 403.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
409
1201 — the resource's current state does not allow this action.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
422
Validation Error
errorRequiredinteger
Stable integer code from the error table. Branch on this, not on the message.
messageRequiredstring
One human-readable sentence. Wording may change; the code will not.
429
1300 — the per-organization request rate or concurrent-call limit was reached. Carries Retry-After.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
Ended.

