curl --request GET \
--url https://app.autocalls.ai/api/user/leads \
--header 'Authorization: Bearer <token>'{
"current_page": 1,
"data": [
{
"id": 1,
"campaign_id": 1,
"phone_number": "+1234567890",
"variables": {
"customer_name": "John Doe",
"email": "[email protected]"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04",
"campaign": {
"id": 1,
"name": "My new campaign"
},
"secondary_contacts": [
{
"id": 2,
"phone_number": "+1234567899",
"variables": {
"customer_name": "Jane Doe Secondary",
"email": "[email protected]"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04"
}
]
}
],
"first_page_url": "https://app.autocalls.ai/api/user/leads?page=1",
"from": 1,
"last_page": 10,
"last_page_url": "https://app.autocalls.ai/api/user/leads?page=10",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://app.autocalls.ai/api/user/leads?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.autocalls.ai/api/user/leads?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.autocalls.ai/api/user/leads?page=2",
"path": "https://app.autocalls.ai/api/user/leads",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 150
}
List all leads for the authenticated user with filtering and pagination options
curl --request GET \
--url https://app.autocalls.ai/api/user/leads \
--header 'Authorization: Bearer <token>'{
"current_page": 1,
"data": [
{
"id": 1,
"campaign_id": 1,
"phone_number": "+1234567890",
"variables": {
"customer_name": "John Doe",
"email": "[email protected]"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04",
"campaign": {
"id": 1,
"name": "My new campaign"
},
"secondary_contacts": [
{
"id": 2,
"phone_number": "+1234567899",
"variables": {
"customer_name": "Jane Doe Secondary",
"email": "[email protected]"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04"
}
]
}
],
"first_page_url": "https://app.autocalls.ai/api/user/leads?page=1",
"from": 1,
"last_page": 10,
"last_page_url": "https://app.autocalls.ai/api/user/leads?page=10",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://app.autocalls.ai/api/user/leads?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.autocalls.ai/api/user/leads?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.autocalls.ai/api/user/leads?page=2",
"path": "https://app.autocalls.ai/api/user/leads",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 150
}
created, scheduled, processing, completed, rescheduled, reached-max-retries, blacklistedShow properties
Show secondary_contacts properties
{
"current_page": 1,
"data": [
{
"id": 1,
"campaign_id": 1,
"phone_number": "+1234567890",
"variables": {
"customer_name": "John Doe",
"email": "[email protected]"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04",
"campaign": {
"id": 1,
"name": "My new campaign"
},
"secondary_contacts": [
{
"id": 2,
"phone_number": "+1234567899",
"variables": {
"customer_name": "Jane Doe Secondary",
"email": "[email protected]"
},
"status": "created",
"created_at": "2025-06-30 11:18:04",
"updated_at": "2025-06-30 11:18:04"
}
]
}
],
"first_page_url": "https://app.autocalls.ai/api/user/leads?page=1",
"from": 1,
"last_page": 10,
"last_page_url": "https://app.autocalls.ai/api/user/leads?page=10",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://app.autocalls.ai/api/user/leads?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.autocalls.ai/api/user/leads?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.autocalls.ai/api/user/leads?page=2",
"path": "https://app.autocalls.ai/api/user/leads",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 150
}