Create or Update Leads
Create or update one lead or a partial-success bulk batch. Safety note: This operation is an upsert: matching source plus external_id, email, or phone can update an existing lead. move deactivates other runs, do_not_contact suppresses enrollment, and forced fields can contact immediately. Bulk identity conflicts are returned per item inside HTTP 201.
assigned_to with the team member’s user ID — get it from GET /team, where each member’s id is the value to use. The owner must be an active member of your account; anything else is rejected with 400.Assigning an owner is independent from workflow_id: workflow_id picks the AI agent that works the lead, assigned_to records which person owns it.Authorizations
API key for authentication. Keys are prefixed with nxr_live_.
Body
- 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.
Response
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.