Skip to main content
PATCH
Update an Agent
Activating a task (is_paused: false) starts contacting every lead waiting in it, per its cadence. Calls wait for the task’s contact hours; messages go right away unless the task restricts messages to its hours. Do-not-contact leads are not contacted, and inbound-only tasks don’t start outreach. Check how many leads are waiting before you turn it on.
PATCH /workflows/:id Rename an agent, edit its description, activate/pause it, or make it reply-only. Agents are born paused when created via the API — this is the only way to turn one on programmatically.

Path Parameters

Request Body

Provide at least one of the following.

Responses

200 — Updated

pending_runs is only present when activating, and reflects leads whose cadence resumes immediately.

400 — Validation error

400 — Activation blocked

Appointment-goal agents need at least one active meeting type before they can be activated:

401 — Authentication error

See Authentication.

404 — Not found

409 — A draft is in the way

Moving a task (workflow) to another agent (master_workflow) with master_workflow_id always changes the live agents right away. It is refused while the agent the task leaves, or the agent it moves to, has a draft with unpublished changes:
Publish or discard that draft, then send the move again. Nothing moved.

409 — The task and the agent each own a WhatsApp number

An agent owns only one WhatsApp number. When the task and the agent it moves to each own one, the move is refused and the response names both numbers:
To move the task, unbind its number, then send the move again. Unbinding makes that number stop answering, also for the other_tasks_using_it tasks. When provider is kapso, unbind it with Assign a WhatsApp Number and workflow_id: null. Nothing moved. A move sent by Nexor AI together with other changes is refused with 409 draft_mixed_move: send the move alone. API keys never get this response.

500 — Internal server error

Authorizations

X-API-Key
string
header
required

API key for authentication. Keys are prefixed with nxr_live_. To work inside a sub-account with a main account key, also send the optional X-Nexor-Sub-Account-Id header.

Path Parameters

id
string<uuid>
required

Workflow identifier.

Body

application/json
is_paused
boolean
required
name
string
description
string
goal_statement
string
Maximum string length: 800
begin_message
string
Maximum string length: 1000
master_workflow_id
string<uuid> | null

Moves the task to this agent. The move always applies to the live agents right away, never to a draft. null detaches the task from its agent. Refused with 409 task_in_open_draft while the agent the task leaves or the agent it moves to has a draft with unpublished changes, and with 409 whatsapp_provider_assignment_lineage_change_requires_unassign when the task and the destination agent each own a WhatsApp number.

language
enum<string>
Available options:
es-CL,
es-MX,
es-PE,
es-CO,
es-AR,
es-US,
en-US,
en-AU,
ko-KR,
pt-BR,
fr-FR,
ar-AE,
zh-CN,
vi-VN,
th-TH
timezone
string

Valid IANA time-zone name.

region_style
enum<string>
Available options:
cl,
mx,
pe,
co,
ar,
es,
latam,
us,
au,
gb,
in,
nz,
kr,
br,
pt,
agent_name
string
Maximum string length: 200
agent_role
string
Maximum string length: 200
company_name
string
Maximum string length: 200
inbound_only
boolean

Reply-only switch. true: the agent never initiates contact (no first contact and no cadence when a lead enrols or is transferred in) and only answers when the lead writes. false: normal outbound behavior.

Response

Successful response.

success
enum<boolean>
required
Available options:
true
workflow_id
string<uuid>
required
language
string
timezone
string
region_style
string | null
agent_name
string
agent_role
string
company_name
string
master_workflow_id
string<uuid> | null
pending_runs
integer
activation_warnings
object[]
blockers
object[]
is_paused
boolean
identity
object
inbound_only
boolean

Persisted value of the reply-only switch, read back from the stored agent.

Last modified on October 28, 2026