# Get run event summary

```http
GET /runs/{run_id}/events/summary
```

Count run events by type and time bucket without event bodies or usage metrics.

## Parameters

| Name                  | In    | Required | Description                                                                                                                                                                              |
| --------------------- | ----- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `run_id`              | path  | Yes      |                                                                                                                                                                                          |
| `buckets`             | query |          |                                                                                                                                                                                          |
| `event_class`         | query |          | The event class associated with this record.                                                                                                                                             |
| `event_type`          | query |          | Filter by event\_type. Repeat the query parameter for multiple values; comma-separated values remain a compatibility alias. Values within this filter use OR; different filters use AND. |
| `is_error`            | query |          |                                                                                                                                                                                          |
| `start`               | query |          |                                                                                                                                                                                          |
| `end`                 | query |          |                                                                                                                                                                                          |
| `span_id`             | query |          |                                                                                                                                                                                          |
| `turn_id`             | query |          |                                                                                                                                                                                          |
| `search`              | query |          |                                                                                                                                                                                          |
| `include_descendants` | query |          |                                                                                                                                                                                          |

## Responses

| Status | Description                               |
| ------ | ----------------------------------------- |
| 200    | Returns a summary of recorded run events. |
| 400    | Bad request                               |
| 401    | Unauthorized                              |
| 403    | Forbidden                                 |
| 404    | Not found                                 |
| 429    | Rate limit exceeded                       |
| 500    | Server error                              |
| 503    | Service unavailable                       |
