# Get Unread Count Beta

> Retrieve the number of unread replies.

> 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/inbox/unread-count

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

Requires an API key with the `read` scope.

The same number as `unread` in [Get Inbox Stats](https://www.foxreach.io/docs/api-reference/inbox/get-stats): unread replies on your email accounts, with warmup and unrelated mail left out. It costs one query, so it suits polling. The unread badge in the FoxReach app counts only replies that belong to a campaign, so this number can be higher than the badge when bounce notices or other unscoped replies are unread.

**Request example**

```bash cURL
curl "https://api.foxreach.io/api/v1/inbox/unread-count" \
  -H "X-API-Key: otr_your_key"
```

```python Python
import requests

response = requests.get(
    "https://api.foxreach.io/api/v1/inbox/unread-count",
    headers={"X-API-Key": "otr_your_key"}
)
data = response.json()
```

```typescript TypeScript
const response = await fetch("https://api.foxreach.io/api/v1/inbox/unread-count", { method: "GET", headers: { "X-API-Key": "otr_your_key" } });
const data = await response.json();
```

**Response example**

```json
{
  "data": {
    "unread": 12
  }
}
```

## Errors

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

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