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

leads
array
[
  {
    "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"
    }
  }
]