# Add Leads to a Lead List Beta

> Add leads to a lead list.

> Documentation index: https://www.foxreach.io/docs/llms.txt lists every page of these docs. Each page is also served as Markdown: add `.md` to its URL.

`POST` https://api.foxreach.io/api/v1/lead-lists/{list_id}/leads

> **Note:** **Beta.** This endpoint is new and may change.

Requires an API key with the `write` scope.

Tags the selected leads with the list. Up to 1,000 selected leads run inside the request and the job comes back `completed` (`200`). More than that is queued: the response is `202` with a `pending` job; poll [Get Job](https://www.foxreach.io/docs/api-reference/jobs/get-job). Leads that are already on the list are left as they are; ids from another workspace and deleted leads are skipped.

## Path Parameters

- `list_id` string path required: The list id.

## Request Body

- `leadIds` string[] body: Lead IDs, up to 50,000. Send this or `filter`, not both.
- `filter` object body: Select leads by filter instead. Keys: `search`, `status`, `tags`, `tagMatch`, `provider`, `interestStatus`, `labelId`, `ownerUserId`. Matches at most 50,000 leads, newest first.

## Response

- `data` object

  The job. See [Get Job](https://www.foxreach.io/docs/api-reference/jobs/get-job) for every field. `result` is `{ "updated": 120 }`, how many of the selected leads in your workspace were processed.

**Request example**

```bash cURL
curl -X POST "https://api.foxreach.io/api/v1/lead-lists/tag_abc123/leads" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{"leadIds": ["cmlead1", "cmlead2"]}'
```

```python Python SDK (beta)
from foxreach import FoxReach

client = FoxReach(api_key="otr_your_key")
job = client.lead_lists.add_leads("tag_abc123", lead_ids=["cmlead1", "cmlead2"])
```

```typescript TypeScript SDK (beta)
import { FoxReach } from "foxreach";

const client = new FoxReach({ apiKey: "otr_your_key" });
const job = await client.leadLists.addLeads("tag_abc123", { leadIds: ["cmlead1", "cmlead2"] });
```

**Response example**

```json
{
  "data": {
    "id": "cmjob904",
    "type": "lead_bulk",
    "status": "completed",
    "progress": 100,
    "totalItems": 2,
    "completedItems": 2,
    "result": { "updated": 2 },
    "error": null
  }
}
```

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `write` |
| `404` | Lead list not found |
| `422` | Neither or both of `leadIds` and `filter` were sent |

## Rate Limit

- **100 requests per minute, shared by every `bulk` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`bulk`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns, see [Rate Limiting](https://www.foxreach.io/docs/rate-limiting).
