Assign Agent to Lead
Assign an Agent to a lead and optionally request an immediate call, including outside contact hours.
assigned_to on PATCH /leads/ or when creating the lead.Request an immediate call
Sendforce_touchpoint: true when a lead requests a call now, including outside the Agent’s contact hours:
restart: true only when a fresh assignment is also wanted.
The override preserves pauses, disabled call channels, human takeover, leads waiting for your team and duplicate-call protection. If an opening call is unavailable, normal channel fallback can still apply; the call override is reported as unapplied.
Check the force_touchpoint object in the response:
applied: true means the call was queued or accepted, not that the lead answered. With applied: false, inspect reason, code or error for the cause. For example, workflow_paused means the Agent is paused, duplicate_lead_call means an existing call blocked a new one, and lead_in_support means the lead is waiting for someone from your team to reply. lead_support_unverified with retryable: true means Nexor could not confirm whether the lead is waiting for the team; the request can be retried after a short wait. A successful assignment can return success: true with force_touchpoint.applied: false.
The option defaults to false and accepts only a JSON boolean. MCP keys need both leads:write and messages:send; REST API keys keep their existing access. This option applies only to this single-lead assignment endpoint, not bulk assignment or lead creation.Authorizations
API key for authentication. Keys are prefixed with nxr_live_.
Path Parameters
Lead ID
Body
ID of the workflow to assign the lead to. Use GET /workflows to list available workflows. workflowId (camelCase) is accepted as an alias.
"123e4567-e89b-12d3-a456-426614174000"
Optional reason for the assignment. Stored on the deactivated workflow run when reassigning.
"Lead qualified for premium workflow"
Create a fresh run even if the lead is already active in this Agent. When omitted or false, the existing run and stage are preserved.
Request an immediate call, including outside contact hours. On a new run, selects call as the opening channel when available and bypasses hours only for that call; normal channel fallback remains when calling is unavailable. On an existing run, requests a call without restarting it. Pauses, channel availability and outbound guards remain in effect. MCP keys require messages:send in addition to leads:write.