Skip to main content
Creates a new lead in a campaign. The lead will be queued for outbound calling according to the campaign’s schedule and retry settings.

Endpoint

POST /user/lead

Request

phone_number
string
required
Lead’s phone number in E.164 format (e.g., +1234567890).
campaign_id
integer
required
ID of the campaign to add the lead to.
variables
object
Custom variables to pass to the call. Variable names must match those defined on the campaign’s assistant.
allow_dupplicate
boolean
Whether to allow creating a duplicate lead with the same phone number in the same campaign.
secondary_contacts
array
Additional contact numbers to attempt if the primary number does not answer.

Response

message
string
Confirmation message.
data
object
The created lead.

Example

curl -X POST "https://portal.intellixent.ai/api/user/lead" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone_number": "+1234567890",
    "campaign_id": 1,
    "variables": {
      "customer_name": "John Doe",
      "email": "john.doe@example.com"
    }
  }'
200 Response
{
  "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": []
  }
}