POST
/
user
/
lead
curl --request POST \
  --url https://robocallz.ai/user/lead \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone_number": "+1234567890",
  "campaign_id": 1,
  "variables": [
    {
      "customer_name": "John Doe",
      "email": "john.doe@example.com"
    }
  ],
  "allow_duplicate": false
}'
{
  "message": "Lead created successfully",
  "data": {
    "id": "1234569"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200 - application/json

Lead created successfully

The response is of type any.