Skip to main content
POST
Mark a workflow run complete before the agent has finished conducting it. Outreach to the lead stops, queued messages are cancelled, and whatever the workflow had left to do is skipped. Completing is final. If the workflow is configured to mark the lead completed, the lead is completed too and a lead.completed webhook fires after workflow_run.completed. A workflow run also completes on its own, without this call, once the workflow has nothing left to do. Completing a workflow run that is already COMPLETED 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 complete.
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 CANCELLED, or this workflow’s runs cannot be completed manually. The error message says which.