Leads
List leads
List all leads for the authenticated user
GET
/
user
/
leads
curl --request GET \
--url https://app.autocalls.ai/api/user/leads \
--header 'Authorization: Bearer <token>'
[
{
"id": "1",
"campaign_id": "1",
"phone_number": "+1234567890",
"variables": {
"customer_name": "John Doe",
"email": "john.doe@example.com"
},
"status": "created",
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z",
"campaign": {
"id": "1",
"name": "Summer Campaign"
}
}
]
This endpoint allows you to list all leads belonging to the authenticated user.
Response fields
The id of the lead
The ID of the campaign this lead belongs to
The phone number of the lead in E.164 format
The variables associated with the lead
The status of the lead
The created at date of the lead
The updated at date of the lead
[
{
"id": "1",
"campaign_id": "1",
"phone_number": "+1234567890",
"variables": {
"customer_name": "John Doe",
"email": "john.doe@example.com"
},
"status": "created",
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z",
"campaign": {
"id": "1",
"name": "Summer Campaign"
}
}
]
curl --request GET \
--url https://app.autocalls.ai/api/user/leads \
--header 'Authorization: Bearer <token>'
[
{
"id": "1",
"campaign_id": "1",
"phone_number": "+1234567890",
"variables": {
"customer_name": "John Doe",
"email": "john.doe@example.com"
},
"status": "created",
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z",
"campaign": {
"id": "1",
"name": "Summer Campaign"
}
}
]
Assistant
Responses are generated using AI and may contain mistakes.