Skip to main content

Resume Automation

POST /leads/{id}/automation/resume

Resumes AI automation for a lead's workflow run after it was stopped. The AI will respond to messages again.

Cadence is not resumed by default — set resume_cadence: true if you want the automated outreach sequence to restart.

Path Parameters

ParameterTypeRequiredDescription
idstring (uuid)YesLead ID

Request Body

FieldTypeRequiredDescription
workflow_idstring (uuid)YesWorkflow to resume automation for
resume_cadencebooleanNoWhether to also resume the cadence sequence. Default: false

Examples

curl -X POST https://api.getnexor.ai/api/public/leads/lead-uuid/automation/resume \
-H "Content-Type: application/json" \
-H "X-API-Key: nxr_live_your_api_key" \
-d '{ "workflow_id": "workflow-uuid" }'

Resume AI + cadence

curl -X POST https://api.getnexor.ai/api/public/leads/lead-uuid/automation/resume \
-H "Content-Type: application/json" \
-H "X-API-Key: nxr_live_your_api_key" \
-d '{ "workflow_id": "workflow-uuid", "resume_cadence": true }'

Responses

200 — Automation resumed

{
"success": true,
"workflow_run_id": "run-uuid",
"cadence_resumed": false
}

If already running:

{
"success": true,
"already_running": true,
"workflow_run_id": "run-uuid"
}

Response Fields

FieldTypeDescription
workflow_run_idstringThe workflow run that was resumed
cadence_resumedbooleanWhether cadence was also resumed
already_runningbooleanReturned if automation was already active (idempotent)

400 — Missing workflow_id

{
"error": "workflow_id is required"
}

404 — No active run found

{
"error": "No active workflow run found for this lead and workflow"
}

401 — Authentication error

See Authentication.