> ## 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.

# Export Block List

> Read your whole block list, page by page, with a cursor

Returns every entry in your domain and email block list, a page at a time, for audits, backups or a sync to another system. Pass `next_cursor` from one page as `cursor` to get the next; when `next_cursor` is `null` you have every entry.

Pages are in order of `email_or_domain`, then `id`. Unlike `offset` on [Get Domain Block List](https://api.smartlead.ai/api-reference/utilities/domain-block-list.md#get-domain-block-list), a cursor stays fast on very large lists.

> [!NOTE]
>
> Client API keys get `401 Not authorized` on this endpoint, the same as the other block list endpoints.

## Query Parameters

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

Your SmartLead API key

**filter\_client\_id** `integer`

Only entries assigned to this client. Leave it out for every entry in your account.

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

Entries per page, 1 to 5000

**cursor** `string`

`next_cursor` from the previous page. Leave it out for the first page.

```bash cURL theme={null}
curl "https://server.smartlead.ai/api/v1/leads/domain-block-list/export?api_key=YOUR_KEY&limit=1000"
```

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

entries, cursor = [], None
while True:
    params = {"api_key": "YOUR_API_KEY", "limit": 1000}
    if cursor:
        params["cursor"] = cursor
    page = requests.get(
        "https://server.smartlead.ai/api/v1/leads/domain-block-list/export",
        params=params,
    ).json()
    entries += page["data"]
    cursor = page["next_cursor"]
    if not cursor:
        break
print(len(entries))
```

## Response Codes

**200** `Success`

One page. `data` is empty when there is nothing (more) to read. `next_cursor` is `null` on the last page.

**400** `Bad Request`

`cursor` is not a `next_cursor` from this endpoint, `limit` is outside 1 to 5000, `filter_client_id` is not a positive integer, or an unknown query parameter

**401** `Unauthorized`

Invalid or missing API key, or a client API key

**500** `Internal Server Error`

The read failed; retry the same request

```json 200 - Success theme={null}
{
  "ok": true,
  "data": [
    {
      "id": 101,
      "email_or_domain": "example.com",
      "client_id": null,
      "source": "API",
      "created_at": "2026-11-30T08:15:00.000Z"
    },
    {
      "id": 102,
      "email_or_domain": "jane@example.org",
      "client_id": 12,
      "source": "API",
      "created_at": "2026-11-30T08:16:00.000Z"
    }
  ],
  "next_cursor": "eyJkIjoiamFuZUBleGFtcGxlLm9yZyIsImkiOjEwMn0"
}
```

```json 400 - Bad cursor theme={null}
{
  "ok": false,
  "error": "Invalid cursor: pass next_cursor from the previous page."
}
```

```json 401 - Client API key theme={null}
{
  "message": "Not authorized"
}
```

```json 500 - Internal Server Error theme={null}
{
  "ok": false,
  "error": "Error exporting the domain block list"
}
```


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