# Bulk Enable Warmup Beta

> Enable warmup on up to 100 email accounts in one call.

> 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/email-accounts/warmup/enable

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

Requires an API key with the `write` scope.

Same rules as [Enable Warmup](https://www.foxreach.io/docs/api-reference/email-accounts/enable-warmup): the plan's warmed-inbox cap applies to each account that turns on (an account past the cap is reported with the plan message and the ones before it stay enabled), an account that warmed before resumes its ramp, and enabling an account that is already warming changes nothing. Turning warmup on makes the account send warmup email.

## Request Body

- `accountIds` string[] body required

  1 to 100 email account ids.

- `restart` boolean body

  Start each ramp over at day 0 instead of resuming where it stopped. Default `false`.

**Request example**

```bash cURL
curl -X POST "https://api.foxreach.io/api/v1/email-accounts/warmup/enable" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{"accountIds": ["cea_abc123", "cea_def456"]}'
```

```python Python
import requests

response = requests.post(
    "https://api.foxreach.io/api/v1/email-accounts/warmup/enable",
    headers={"X-API-Key": "otr_your_key"},
    json={"accountIds": ["cea_abc123", "cea_def456"]}
)
data = response.json()
```

```typescript TypeScript
const response = await fetch("https://api.foxreach.io/api/v1/email-accounts/warmup/enable", { method: "POST", headers: { "X-API-Key": "otr_your_key", "Content-Type": "application/json" }, body: JSON.stringify({"accountIds": ["cea_abc123", "cea_def456"]}) });
const data = await response.json();
```

**Response example**

```json
{
  "data": {
    "results": [
      {
        "id": "cea_abc123",
        "ok": true,
        "error": null
      },
      {
        "id": "cea_def456",
        "ok": false,
        "error": "Email account not found"
      }
    ],
    "succeeded": 1,
    "failed": 1
  }
}
```

## How it works

The accounts are changed one at a time, with exactly the rules of the single-account call, and each change is saved on its own. The response is `200` even when some ids fail: read `results`, one entry per id in request order (repeated ids count once) with `ok` and an `error`. Accounts changed before a failure stay changed, and an id that is unknown or belongs to another workspace is reported as `Email account not found`. Up to 100 ids per call; a call with 100 accounts takes longer than a single-account call, so send them in batches if you need low latency.

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `write` |
| `422` | `accountIds` is empty or has more than 100 ids |

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