# Events Summary Beta

> Event counts by type and webhook delivery counts by status.

> 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

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

Requires an API key with the `read` scope.

Counts the workspace's stored events by type, and its webhook deliveries by status (`success`, `failed`, `pending`), for a window of at most 90 days. Internal staff events are not counted. Deliveries are counted by the day they were queued. For the records themselves, use [List Events](https://www.foxreach.io/docs/api-reference/webhooks/list-events).

## 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?startDate=2026-11-01T00:00:00Z" \
  -H "X-API-Key: otr_your_key"
```

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

client = FoxReach(api_key="otr_your_key")
summary = client.events.summary(start_date="2026-11-01T00:00:00Z")
```

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

const client = new FoxReach({ apiKey: "otr_your_key" });
const summary = await client.events.summary({ startDate: "2026-11-01T00:00:00Z" });
```

**Response example**

```json
{
  "data": {
    "from": "2026-11-01T00:00:00+00:00",
    "to": "2026-11-30T12:00:00+00:00",
    "events": { "total": 42, "byType": { "lead.created": 30, "reply.received": 12 } },
    "deliveries": { "total": 40, "byStatus": { "success": 38, "failed": 2, "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).
