Request body
phone_numberstring required
The phone number of the lead in E.164 format (e.g. +1234567890)
campaign_id integer required
The ID of the campaign to create the lead for
variables object
Custom variables for the lead. For call campaigns, use variables defined on your assistant (see Call variables). For WhatsApp/SMS campaigns, use the keys referenced by your template mapping or SMS body placeholders.
Example variables (add your own)
customer_name string
e.g. the name of the customer
email string
e.g. the email of the customer
allow_dupplicate boolean
Whether to allow duplicate leads in a campaign.
secondary_contacts array
Call campaigns only. Extra phone numbers for the same lead. Rejected for WhatsApp/SMS campaigns.
secondary_contacts properties
phone_number string required
The phone number of the secondary contact in E.164 format
variables object
The variables to pass to the secondary contact
variables properties
customer_name string (default: <string>)
The name of the secondary contact
email string (default: <string>)
The email of the secondary contact
Response
messagestring (default: Lead created successfully)
The message of the response
data object
The lead data object
data properties
id integer
The unique ID of the created lead
campaign_id integer
The ID of the campaign this lead belongs to
phone_number string
The phone number of the lead in E.164 format
variables object
The variables associated with the lead
variables properties
customer_name string (default: <string>)
The name of the customer
email string (default: <string>)
The email of the customer
status string (default: created)
The status of the lead
created_at string
The timestamp when the lead was created
updated_at string
The timestamp when the lead was last updated
campaign object
The campaign information
campaign properties
id integer
The id of the campaign
name string
The name of the campaign
secondary_contacts array
Array of secondary contact leads associated with this lead
secondary_contacts properties
id integer
The id of the secondary contact lead
phone_number string
The phone number of the secondary contact in E.164 format
variables object
The variables associated with the secondary contact
status string
The status of the secondary contact
created_at string
The created at date of the secondary contact
updated_at string
The updated at date of the secondary contact
200 Response

