POST
/
user
/
lead
curl --request POST \
  --url https://app.autocalls.ai/api/user/lead \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone_number": "<string>",
  "campaign_id": 123,
  "variables": {
    "customer_name": "<string>",
    "email": "<string>"
  },
  "allow_dupplicate": true
}'
[
  {
    "message":"Lead created successfully",
    "data": {
      "id": "1",
      "campaign_id":123,
      "phone_number": "+1234567890",
      "variables": {
        "customer_name": "John Doe",
        "email": "test@example.com"
      },
      "status":"created",
      "created_at":"2025-06-02T12:08:17.000000Z",
      "updated_at":"2025-06-02T12:08:17.000000Z"
    }
  }
]

This endpoint allows you to create a new lead in the Autocalls system.

Request body

phone_number
string
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

The variables to pass to the lead

allow_dupplicate
boolean

Whether to allow duplicate leads in a campaign.

Response

message
string
default:"Lead created successfully"

The message of the response

data
object

The lead data object

[
  {
    "message":"Lead created successfully",
    "data": {
      "id": "1",
      "campaign_id":123,
      "phone_number": "+1234567890",
      "variables": {
        "customer_name": "John Doe",
        "email": "test@example.com"
      },
      "status":"created",
      "created_at":"2025-06-02T12:08:17.000000Z",
      "updated_at":"2025-06-02T12:08:17.000000Z"
    }
  }
]