> ## Documentation Index
> Fetch the complete documentation index at: https://api.smartlead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Leads in a Lead List

> Read the leads inside a lead list, newest first, with cursor paging

Returns the leads in one lead list, so you can check what an import added before you push the list to a campaign. Same rows, paging and body as `GET /api/v1/leads/all?listId={id}`, plus a 404 when the list is not yours. For the counts only, use [Get Lead List Stats](https://api.smartlead.ai/api-reference/lead-lists/get-stats.md).

> [!NOTE]
>
> Lead lists belong to the main account, so a client API key owns none: with a client key this endpoint returns `404 Lead list not found`. Use the main account's API key.

## Path Parameters

**id** `integer` *required*

The lead list ID (a positive integer)

## Query Parameters

**api\_key** `string` *required*

Your SmartLead API key

**limit** `integer` (default: 100)

Leads per page, 1 to 1000

**lastSeenLeadId** `integer`

Paging cursor: the `lastSeenLeadId` of the previous page. Leave it out for the first page. Leads come newest first (highest `id` first).

**includeCampaignInCategory** `string`

`true` or `false`. Same meaning as on `GET /api/v1/leads/all`.

Any other query parameter is rejected with a 400. To search or filter inside a list, use `GET /api/v1/leads/all?listId={id}` with its filters.

```bash cURL theme={null}
curl "https://server.smartlead.ai/api/v1/lead-list/500/leads?api_key=YOUR_KEY&limit=100"
```

```python Python theme={null}
import requests

params = {"api_key": "YOUR_API_KEY", "limit": 100}
leads = []
while True:
    data = requests.get("https://server.smartlead.ai/api/v1/lead-list/500/leads", params=params).json()["data"]
    leads += data["leads"]
    if len(data["leads"]) < params["limit"]:
        break
    params["lastSeenLeadId"] = data["lastSeenLeadId"]
print(len(leads))
```

## Response Fields

**data.leads** `array`

The leads on this page: every column of the lead, plus `email_campaign_leads_mappings_count` (how many of your campaigns the lead is active or inactive in) and `category_ids`. `id` is the lead ID, returned as a string (a 64-bit database ID).

**data.lastSeenLeadId** `string`

The `id` of the last lead on this page; send it as `lastSeenLeadId` to get the next page. Absent when the page is empty.

**data.totalCount** `integer`

Total leads in the list (all pages)

## Response Codes

**200** `Success`

Request successful

**400** `Bad Request`

A parameter has the wrong type or is out of range, or an unknown query parameter

**401** `Unauthorized`

Invalid or missing API key

**404** `Not Found`

No lead list with this ID in your account, or a client API key

**500** `Internal Server Error`

Server error; retry the request

```json 200 - Success theme={null}
{
  "ok": true,
  "message": "Leads fetched successfully",
  "data": {
    "leads": [
      {
        "first_name": "Jane",
        "last_name": "Doe",
        "email": "jane@example.com",
        "phone_number": "",
        "company_name": "Example Inc",
        "website": "example.com",
        "location": "",
        "custom_fields": {},
        "user_id": 123,
        "created_at": "2025-12-01T10:00:00.000Z",
        "linkedin_profile": "",
        "company_url": null,
        "id": "5086616",
        "is_unsubscribed": false,
        "webhook_logs": null,
        "unsubscribed_from_campaign_id": null,
        "message_id": null,
        "esp_domain_type": 1,
        "unsubscribed_client_id_map": {},
        "linkedin_profile_data": null,
        "timezone": null,
        "seg_type": null,
        "source": null,
        "email_domain": "example.com",
        "email_campaign_leads_mappings_count": {
          "active_count": 0,
          "total_inactive_count": 0,
          "previously_active_count": 0,
          "archived_count": 0,
          "yet_to_use_count": 1
        },
        "category_ids": []
      }
    ],
    "lastSeenLeadId": "5086616",
    "totalCount": 5093
  }
}
```

```json 404 - Not Found theme={null}
{
  "ok": false,
  "message": "Lead list not found"
}
```

```json 500 - Internal Server Error theme={null}
{
  "ok": false,
  "message": "Error fetching leads"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.