Skip to main content
POST
Cancel a workflow run. The agent stops conducting the workflow, queued messages are cancelled, and the workflow run ends. Cancelling is final. To have the same agent conduct a workflow on this lead again, create a new workflow run. Cancelling a workflow run that is already CANCELLED succeeds and changes nothing.

Authentication

Requires the x-api-key header with a valid workspace API key.

Path Parameters

string
required
The workflow run to cancel.
This endpoint takes no body.

Response

boolean
Whether the request succeeded.
object
The workflow run in its new state. See Get Workflow Run for the full shape.

Errors

error
No workflow run with this id exists in your workspace.
error
The workflow run is already COMPLETED. Terminal workflow runs cannot change status.