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

# Push Fetched Contacts to a Lead List API

> Add the contacts of a fetched search to one of your lead lists, without downloading and re-uploading them - POST /fetch-contacts/push-to-list

> [!NOTE]
>
> **Credit cost:** Free. This call only pushes contacts the search already fetched. It never fetches or charges.

> [!NOTE]
>
> This endpoint requires your API key: pass it as the `api_key` query parameter, or in an `X-API-Key` or `Authorization: Bearer` header (see [Authentication](https://api.smartlead.ai/authentication.md)).

After a [Fetch Contacts](https://api.smartlead.ai/api-reference/smart-prospect/fetch-contacts.md) call, push the search's contacts straight into one of your [lead lists](https://api.smartlead.ai/api-reference/lead-lists). Each call pushes one page of up to 1,000 contacts; send `nextOffset` back as `offset` until it is `null`, and send `historyId` back as `history_id` so the lead list shows the whole push as one import.

The same rules as pushing from the Smart Prospect app apply:

* Contacts with a **valid** email are pushed.
* **Catch-all** emails are pushed only when `include_catch_all` is `true`.
* **Invalid** and **unverified** emails, and contacts without an email, are never pushed. They are counted in `leftOut`.
* A phone number found for a contact goes with it.
* A contact already in the lead list is not added twice (`already`).

Push right after the fetch finishes: contacts whose email lookup is still running have no email yet and are left out (`leftOut.noEmail`). Check [Fetch Progress](https://api.smartlead.ai/api-reference/smart-prospect/fetch-progress.md) first.

### Putting the contacts in a campaign

There is no campaign target on this endpoint. Push the contacts into a lead list first (every page, until `nextOffset` is `null`), then copy that list into the campaign with [Push Leads to Campaign](https://api.smartlead.ai/api-reference/lead-lists/push-to-campaign.md). That call copies the whole list, so push into a new, empty lead list when only these contacts should go to the campaign:

```bash cURL theme={null}
curl -X POST "https://server.smartlead.ai/api/v1/leads/push-to-campaign?api_key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"campaignId": 12345, "action": "copy", "leadList": {"listId": 678}}'
```

That call runs in the background and returns no counts. Read the campaign's leads afterwards to confirm them.

## Request Body

**filter\_id** `number` *required*

The fetched search's ID.

**lead\_list\_id** `number` *required*

ID of one of your lead lists.

**offset** `number`

Contacts to skip (default `0`). Use the previous call's `nextOffset`.

**limit** `number`

Contacts in this page, 1 to 1000 (default `1000`).

**include\_catch\_all** `boolean`

Also push catch-all emails (default `false`).

**history\_id** `number`

The `historyId` from the first page of this push, so the lead list records one import.

```bash cURL theme={null}
curl -X POST "https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts/push-to-list" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filter_id": 12345, "lead_list_id": 678, "limit": 1000}'
```

## Response Fields

All fields are under `data`.

**pushed** `number`

Contacts the lead list took

**added** `number`

Contacts new to the lead list

**already** `number`

Contacts that were in the lead list already

**total** `number`

Contacts in this page

**leftOut** `object`

Contacts not pushed, by reason: `noEmail`, `catchAll`, `invalid`, `unverified`

**historyId** `number | null`

The lead list's import record. Send it back as `history_id` with the next page

**filterTotal** `number`

Contacts the search has fetched in total

**nextOffset** `number | null`

`offset` for the next page, or `null` when this was the last page

## Response Codes

**200** `Success`

Page pushed

**400** `Bad Request`

A required field is missing or out of range, or the lead list refused the push

**401** `Unauthorized`

Missing or invalid API key

**403** `Forbidden`

Called with a client (agency sub-account) API key, or by a view-only team member

**404** `Not Found`

The search or the lead list is not on your account

```json 200 - Page pushed theme={null}
{
  "success": true,
  "data": {
    "pushed": 812,
    "added": 812,
    "already": 0,
    "total": 1000,
    "leftOut": { "noEmail": 120, "catchAll": 55, "invalid": 13, "unverified": 0 },
    "historyId": 4321,
    "filterTotal": 1400,
    "nextOffset": 1000
  }
}
```

```json 404 - Not your search theme={null}
{
  "success": false,
  "message": "Filter not found or access denied"
}
```


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