Asignar Agente a Lead
Assign a lead to a workflow. If the lead has no active workflow, this enrolls them (movementType: ‘enrollment’). If the lead already has an active workflow, the existing run is deactivated and replaced (movementType: ‘reassignment’). The lead will automatically start the new workflow’s cadence sequence unless the workflow is paused.
Autorizaciones
API key for authentication. Keys are prefixed with nxr_live_.
Parámetros de ruta
Lead ID
Cuerpo
ID of the workflow to assign the lead to. Use GET /workflows to list available workflows.
"123e4567-e89b-12d3-a456-426614174000"
Optional reason for the assignment. Stored on the deactivated workflow run when reassigning.
"Lead qualified for premium workflow"
Optional ID of the user or system performing the assignment. Used for audit trail.
"user-abc-123"
Respuesta
Workflow assigned successfully
ID of the newly created workflow run
ID of the assigned workflow
Name of the assigned workflow
Whether this was a new enrollment (lead had no active workflow) or a reassignment (lead moved from another workflow)
enrollment, reassignment Whether the workflow is currently paused. If true, the cadence sequence will not start until the workflow is unpaused.