# Bulk Pause Sending Beta

> Pause campaign sending 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/pause

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

Requires an API key with the `write` scope.

Same as [Pause Sending](https://www.foxreach.io/docs/api-reference/email-accounts/pause-account) for each account: its queued campaign sends are released and go out from the campaign's other accounts; replies and warmup carry on. An account that is already paused reports `ok` and writes no second audit entry.

## Request Body

- `accountIds` string[] body required

  1 to 100 email account ids.

- `reason` string body

  Why sending is paused, up to 200 characters. Kept in each account's audit entry.

**Request example**

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

```python Python
import requests

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

```typescript TypeScript
const response = await fetch("https://api.foxreach.io/api/v1/email-accounts/pause", { method: "POST", headers: { "X-API-Key": "otr_your_key", "Content-Type": "application/json" }, body: JSON.stringify({"accountIds": ["cea_abc123", "cea_def456"], "reason": "Bounce spike"}) });
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).
