---
title: "Get event counts grouped by event name"
method: GET
path: "/api/events/counts"
tags: ["Events"]
---

# Get event counts grouped by event name

`GET /api/events/counts`

## Query parameters

- `category` 'tool' | 'skill' | 'session' | 'api' | 'task' | 'workflow' | 'system'
- `source` 'worker' | 'api' | 'hook' | 'scheduler' | 'cli'
- `agentId` string
- `taskId` string
- `sessionId` string
- `since` string
- `until` string

## Response `200`

Event counts

- object
  - `counts` object[], required
    - `event` string, required
    - `count` integer, required

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/ef761849166b/schema)
