# Get Campaign Cohorts

> Sent, opened, replied and bounced per day.

Requires an API key with the `read` scope.

One row per day that had sends or replies in the last `days` days, newest first. Days are UTC dates, not the campaign's timezone. `uniqueLeads` counts distinct leads emailed that day. Open [Get Campaign Cohort Detail](/api-reference/campaigns/get-campaign-cohort-detail) for the emails behind a day.


## Path Parameters

<ParamField path="campaign_id" type="string" required>The campaign.</ParamField>
<ParamField query="days" type="integer" default="30">How far back, 1 to 90.</ParamField>

## Response

<ResponseField name="data" type="object[]">
  <Expandable title="Day">
    <ResponseField name="date" type="string">UTC date, `YYYY-MM-DD`.</ResponseField>
    <ResponseField name="sent" type="integer">Emails sent.</ResponseField>
    <ResponseField name="opened" type="integer">Emails opened.</ResponseField>
    <ResponseField name="replied" type="integer">Replies received.</ResponseField>
    <ResponseField name="bounced" type="integer">Emails that bounced.</ResponseField>
    <ResponseField name="uniqueLeads" type="integer">Distinct leads emailed.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
```bash cURL
curl -X GET "https://api.foxreach.io/api/v1/campaigns/cmcamp1/cohorts?days=7" \
  -H "X-API-Key: otr_your_key"
```

```python Python SDK
from foxreach import FoxReach

client = FoxReach(api_key="otr_your_key")
cohorts = client.campaigns.cohorts("cmcamp1", days=7)
```

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

const client = new FoxReach({ apiKey: "otr_your_key" });
const cohorts = await client.campaigns.cohorts("cmcamp1", 7);
```
</RequestExample>

<ResponseExample>
```json
{
  "data": [
    { "date": "2026-11-04", "sent": 12, "opened": 6, "replied": 1, "bounced": 0, "uniqueLeads": 12 }
  ]
}
```
</ResponseExample>

## 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 in this workspace |
| `422` | `days` outside 1 to 90 |

## 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 (`Retry-After`, exponential backoff, monitoring `X-RateLimit-Remaining`), see [Rate Limiting](/rate-limiting).
