# List Agency Inbox Beta

> List replies across every client workspace of an Agency account, newest first.

> 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/agency/inbox

> **Note:** **Beta.** The agency inbox endpoint is new and may change.

Requires an API key with the `read` scope.

Only API keys of an Agency workspace can call this endpoint (`403 agency_required` otherwise). The call always runs in the key's own workspace; `X-Workspace-Id` is ignored. Any key of the agency workspace can read the inbox.

Replies from every workspace the agency owner holds, newest first, each with the name of its client workspace. Warmup and unrelated mail are left out. The call is read only: nothing is marked read. To open or answer a thread, call the [inbox endpoints](https://www.foxreach.io/docs/api-reference/inbox/list-threads) with the client's id as `X-Workspace-Id`.

## Query Parameters

- `page` integer query default `1`

  Page number (starts at 1).

- `pageSize` integer query default `25`

  Items per page, 1 to 100.

- `workspaceId` string query

  Only replies from this client workspace (an id from [List Agency Clients](https://www.foxreach.io/docs/api-reference/agency/list-clients)).

- `category` string query

  Only replies in this category: `interested`, `not_interested`, `out_of_office`, `bounce`, `unsubscribe` or `uncategorized`. Any other value returns `422`.

- `unread` boolean query

`true` for unread replies only, `false` for read only. Leave out for both.

## Response

- `data` array

  Reply:

  - `id` string: Reply ID.
  - `workspaceId` string: The client workspace the reply belongs to.
  - `workspaceName` string: That workspace's name.
  - `fromEmail` string: Sender email.
  - `subject` string: Subject line.
  - `snippet` string: Up to 160 characters of the plain-text body, whitespace collapsed.
  - `category` string: Reply category.
  - `isRead` boolean: Whether the reply has been read.
  - `campaignName` string: Campaign the reply came from, `null` when it matched none.
  - `receivedAt` string: ISO 8601 timestamp.

- `meta` object

  Pagination metadata.

  Meta object:

  - `page` integer: Current page number.
  - `pageSize` integer: Items per page.
  - `total` integer: Total number of matching replies.
  - `totalPages` integer: Total number of pages.

**Request example**

```bash cURL
curl "https://api.foxreach.io/api/v1/agency/inbox?category=interested&unread=true" \
  -H "X-API-Key: otr_your_key"
```

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

client = FoxReach(api_key="otr_your_key")
replies = client.agency.list_inbox(category="interested", unread=True)
```

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

const client = new FoxReach({ apiKey: "otr_your_key" });
const replies = await client.agency.listInbox({ category: "interested", unread: true });
```

**Response example**

```json
{
  "data": [
    {
      "id": "rpl_abc123",
      "workspaceId": "ws_abc123",
      "workspaceName": "Acme Corp",
      "fromEmail": "john@prospect.com",
      "subject": "Re: Quick question",
      "snippet": "Thanks for reaching out, happy to talk next week.",
      "category": "interested",
      "isRead": false,
      "campaignName": "Q4 outbound",
      "receivedAt": "2026-12-02T14:30:00"
    }
  ],
  "meta": {
    "page": 1,
    "pageSize": 25,
    "total": 1,
    "totalPages": 1
  }
}
```

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `read` |
| `403` | `agency_required`: the key's workspace does not hold an Agency plan |
| `422` | `category` is not one of the listed values, or `page` / `pageSize` is out of range |

## Rate Limit

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