Crear o actualizar leads
Crea o actualiza un lead o un lote con éxito parcial. Nota de seguridad: Esta operación hace upsert: una identidad existente puede actualizarse. move desactiva otros runs, do_not_contact suprime el enrolamiento y los campos de envío forzado pueden contactar de inmediato.
assigned_to con el ID del miembro del equipo — lo obtienes desde GET /team: el campo id de cada miembro es el valor que debes usar. El responsable debe ser un miembro activo de tu cuenta; cualquier otro valor se rechaza con 400.Asignar un responsable es independiente de workflow_id: workflow_id define qué agente de IA trabaja el lead, assigned_to registra qué persona es dueña de él.Autorizaciones
API key for authentication. Keys are prefixed with nxr_live_.
Cuerpo
- object
- object[]
Lead's first name
"John"
Lead's last name
"Doe"
Lead's email address
"john@example.com"
Lead's phone number (required if assigning to a workflow with call steps)
"+1234567890"
Arbitrary key-value data specific to your organization. Use this to store any custom information about the lead (e.g., age, salary range, assigned broker, lead status, notes). There is no enforced schema — send any keys and values you need. Values can be strings, numbers, or booleans.
Workflow ID to assign the lead to. Use GET /workflows to list available workflows.
"123e4567-e89b-12d3-a456-426614174000"
Campaign ID to tag the lead with (optional). Use GET /campaigns to list available campaigns.
"123e4567-e89b-12d3-a456-426614174001"
Override the first outreach with a custom message. Requires workflow_id. The rest of the cadence sequence continues normally from the second touchpoint.
ID of the team member who owns this lead. Must be an active member of your account — use GET /team to list them and copy the id field. Rejected with 400 otherwise.
"123e4567-e89b-12d3-a456-426614174002"
When true, creates or updates the lead without workflow enrollment.
SMS consent disclosure and evidence. Invalid evidence rejects the lead.
WhatsApp consent disclosure and evidence. Invalid evidence rejects the lead.
When true, deactivates other active workflow runs before enrollment.
Pins the first channel and can trigger immediate outreach. Cannot be combined with force_first_message.
whatsapp, imessage, call, email Suppress the workflow's first outbound message when supported by enrollment.
Respuesta
An existing identity was matched and merged.
true Documented top-level response field.
Documented top-level response field.
Documented top-level response field.
Documented top-level response field.
Documented top-level response field.
Documented top-level response field.
Documented top-level response field.
Documented top-level response field.