POST
/
user
/
lead
Create lead
curl --request POST \
  --url https://app.robocallz.ai/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": 123,
    "campaign_id": 123,
    "phone_number": "<string>",
    "variables": {
      "customer_name": "<string>",
      "email": "<string>"
    },
    "status": "created",
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

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 object.