# Events Summary by Date Beta

> Event and delivery counts for each UTC day.

> 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/events/summary-by-date

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

Requires an API key with the `read` scope.

The same counts as [Events Summary](https://www.foxreach.io/docs/api-reference/webhooks/events-summary), one entry per UTC day in the window, with zero-count days included. The window is at most 90 days, so the response has at most 91 entries.

## Query Parameters

- `startDate` string query

  ISO 8601 time. Default: 30 days before `endDate`. A time without an offset is UTC.

- `endDate` string query

  ISO 8601 time. Default: now. The range from `startDate` to `endDate` is at most 90 days.

**Request example**

```bash cURL
curl "https://api.foxreach.io/api/v1/events/summary-by-date?startDate=2026-11-28T00:00:00Z&endDate=2026-11-30T00:00:00Z" \
  -H "X-API-Key: otr_your_key"
```

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

client = FoxReach(api_key="otr_your_key")
days = client.events.summary_by_date(start_date="2026-11-28T00:00:00Z", end_date="2026-11-30T00:00:00Z")
```

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

const client = new FoxReach({ apiKey: "otr_your_key" });
const days = await client.events.summaryByDate({ startDate: "2026-11-28T00:00:00Z", endDate: "2026-11-30T00:00:00Z" });
```

**Response example**

```json
{
  "data": {
    "from": "2026-11-28T00:00:00+00:00",
    "to": "2026-11-30T00:00:00+00:00",
    "days": [
      { "date": "2026-11-28", "total": 0, "byType": {}, "deliveries": { "success": 0, "failed": 0, "pending": 0 } },
      { "date": "2026-11-29", "total": 3, "byType": { "lead.created": 3 }, "deliveries": { "success": 3, "failed": 0, "pending": 0 } },
      { "date": "2026-11-30", "total": 1, "byType": { "reply.received": 1 }, "deliveries": { "success": 0, "failed": 1, "pending": 0 } }
    ]
  }
}
```

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `read` |
| `422` | A date that is not ISO 8601, `startDate` after `endDate`, or a range over 90 days |

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