cURL
curl --request GET \ --url https://call.aiployees.com/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": "john.doe@example.com" }, "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": "jane.doe.secondary@example.com" }, "status": "created", "created_at": "2025-06-30 11:18:04", "updated_at": "2025-06-30 11:18:04" } ] } ], "first_page_url": "https://call.aiployees.com/api/user/leads?page=1", "from": 1, "last_page": 10, "last_page_url": "https://call.aiployees.com/api/user/leads?page=10", "links": [ { "url": null, "label": "« Previous", "active": false }, { "url": "https://call.aiployees.com/api/user/leads?page=1", "label": "1", "active": true }, { "url": "https://call.aiployees.com/api/user/leads?page=2", "label": "2", "active": false } ], "next_page_url": "https://call.aiployees.com/api/user/leads?page=2", "path": "https://call.aiployees.com/api/user/leads", "per_page": 15, "prev_page_url": null, "to": 15, "total": 150 }
Извеждане на всички потенциални клиенти за удостоверения потребител с опции за филтриране и пагинация
created
scheduled
processing
completed
rescheduled
reached-max-retries
blacklisted
Show свойства
Show свойства на campaign
Show свойства на secondary_contacts