/leads/{id}/automation/stop
Stops all AI automation for a lead’s active workflow run. The AI will no longer respond to messages, cadence is paused, and pending scheduled tasks are cancelled.
Use this when a human agent takes over the conversation or the lead requests to stop being contacted.
Authenticate every request with the X-API-Key header. See Authentication.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | Lead ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
workflow_id | string (uuid) | Yes | Workflow to stop automation for |
Responses
200 Automation stopped
Response Fields
| Field | Type | Description |
|---|---|---|
workflow_run_id | string | The workflow run that was stopped |
cadence_paused | boolean | Whether cadence was paused |
tasks_cancelled | integer | Number of pending tasks that were cancelled |
already_stopped | boolean | Returned if automation was already stopped (idempotent) |
400 Missing workflow_id
404 No active run found
expired, converted).