# Get Campaign Sending Status Beta

> Why a campaign is or is not sending right now.

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

`GET` https://api.foxreach.io/api/v1/campaigns/{campaign_id}/sending-status

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

Requires an API key with the `read` scope.

Answers "why is nothing going out?" from the same inputs the sender checks: the campaign status, whether the sending window is open now, the state of every assigned account, the daily cap, the send queue and the leads that are due. `blockingReasons` is empty when the campaign can send; `canSendNow` is `true` only then. Read only, nothing is changed.

## Path Parameters

- `campaign_id` string path required

  The campaign id. An id from another workspace returns `404`.

## Response

- `blockingReasons` array

`{code, detail}` entries, in the order the sender checks them: `campaign_not_active`, `outside_sending_window`, `campaign_daily_limit`, `no_accounts_assigned`, `no_usable_accounts`, `account_capacity`, `no_sequences`, `no_leads_ready`.

- `schedule` object: `timezone`, `sendingDays` (0 is Sunday), `start`, `end`, `localTime` and `windowOpen`.
- `accounts` object: Counts (`assigned`, `usable`, `inactive`, `disconnected`, `paused`, `providerLimited`, the last for accounts the provider has throttled) and one item per account with its `state`, `sentToday` and `remainingToday` (the account's daily limit minus sends today and queued sends).
- `dailyCap` object: The campaign's `limit` and `sentToday`, counted over the campaign's own timezone day.
- `queue` object: `pending`, `dueNow` (pending and scheduled in the past) and `sending`.
- `leads` object: `sendable` (leads that can still receive a step) and `readyNow` (of those, due now, not unsubscribed, bounced, deleted or verified bad, and not already queued). A lead on the block list still counts here until the sender's next pass takes it out of the queue.
- `lastGateBlock` object: For an active campaign, the last reason the sender recorded for not sending, with its time, or `null`. This is where the workspace monthly limit and the workspace daily safety cap show up (`workspace_monthly_limit`, `workspace_daily_cap`): they are not recomputed here, so an empty `blockingReasons` is not proof that neither cap is reached.
- `pause` object: For a paused campaign, why it paused (`reason`, `auto`, `timestamp`), or `null`.

**Request example**

```bash cURL
curl "https://api.foxreach.io/api/v1/campaigns/cmp_abc123/sending-status" \
  -H "X-API-Key: otr_your_key"
```

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

client = FoxReach(api_key="otr_your_key")
status = client.campaigns.sending_status("cmp_abc123")
```

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

const client = new FoxReach({ apiKey: "otr_your_key" });
const status = await client.campaigns.sendingStatus("cmp_abc123");
```

**Response example**

```json
{
  "data": {
    "campaignId": "cmp_abc123",
    "status": "active",
    "canSendNow": false,
    "blockingReasons": [
      { "code": "outside_sending_window", "detail": "Outside the sending window in America/New_York" }
    ],
    "schedule": {
      "timezone": "America/New_York",
      "sendingDays": [1, 2, 3, 4, 5],
      "start": "09:00",
      "end": "17:00",
      "localTime": "2026-12-03T21:15:00-05:00",
      "windowOpen": false
    },
    "accounts": {
      "assigned": 2, "usable": 2, "inactive": 0, "disconnected": 0, "paused": 0, "providerLimited": 0,
      "items": [{ "id": "acc_1", "email": "sam@acme.com", "state": "usable", "sentToday": 12, "remainingToday": 38 }]
    },
    "dailyCap": { "limit": 100, "sentToday": 24 },
    "queue": { "pending": 3, "dueNow": 0, "sending": 0 },
    "leads": { "sendable": 140, "readyNow": 120 },
    "lastGateBlock": null,
    "pause": null
  }
}
```

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `read` |
| `404` | Campaign not found |

## Rate Limit

- **600 requests per minute, shared by every `poll` 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` (`poll`).
- 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).
