This endpoint allows you to create a new lead in the Autocalls system.
Request body
The phone number of the lead in E.164 format (e.g. +1234567890)
The ID of the campaign to create the lead for
The variables to pass to the leadShow variables properties
The email of the customer
Whether to allow duplicate leads in a campaign.
Array of secondary contact leads to create along with the main leadShow secondary_contacts properties
The phone number of the secondary contact in E.164 format
The variables to pass to the secondary contactShow variables properties
The name of the secondary contact
The email of the secondary contact
Response
message
string
default:"Lead created successfully"
The message of the response
The lead data object
The unique ID of the created lead
The ID of the campaign this lead belongs to
The phone number of the lead in E.164 format
The variables associated with the leadShow variables properties
The email of the customer
The timestamp when the lead was created
The timestamp when the lead was last updated
Array of secondary contact leads associated with this leadShow secondary_contacts properties
The id of the secondary contact lead
The phone number of the secondary contact in E.164 format
The variables associated with the secondary contact
The status of the secondary contact
The created at date of the secondary contact
The updated at date of the secondary contact
{
"message": "Lead created successfully",
"data": {
"id": 1,
"campaign_id": 1,
"phone_number": "+1234567890",
"variables": {
"customer_name": "John Doe",
"email": "john.doe@example.com"
},
"status": "created",
"created_at": "2025-06-30 11:53:20",
"updated_at": "2025-06-30 11:53:20",
"campaign": {
"id": 1,
"name": "My new campaign"
},
"secondary_contacts": [
{
"id": 2,
"phone_number": "+1234567891",
"variables": {
"customer_name": "Jane Doe Secondary",
"email": "jane.doe.secondary@example.com"
},
"status": "created",
"created_at": "2025-06-30 11:53:20",
"updated_at": "2025-06-30 11:53:20"
},
{
"id": 3,
"phone_number": "+1234567892",
"variables": {
"customer_name": "Bob Doe Office",
"email": "bob.doe.office@example.com"
},
"status": "created",
"created_at": "2025-06-30 11:53:20",
"updated_at": "2025-06-30 11:53:20"
}
]
}
}