This endpoint allows you to create a new lead in the Kalimna 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 lead
Whether to allow duplicate leads in a campaign.
Response fields
The message of the response
{
"phone_number": "+1234567890",
"campaign_id": 1,
"variables": [
{
"customer_name": "John Doe",
"email": "[email protected]"
}
],
"allow_dupplicate": false
}
{
"message": "Lead created successfully",
"data": {
"id": "1234569"
}
}