---
title: "Count Agent Telemetry"
method: GET
path: "/v1/agent-telemetry/count"
tags: ["agent-telemetry"]
---

# Count Agent Telemetry

`GET /v1/agent-telemetry/count`

Total agent_telemetry rows matching the given filters (standalone).

The filter set mirrors the purge endpoint's, so this sizes exactly what a
"delete all N matching" would remove. Behavioral and metric rows are counted
together: neither this nor the purge distinguishes them. Master-key only.

## Query parameters

- `start_date` string, date-time, nullable — Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)
- `end_date` string, date-time, nullable — Return rows with timestamp < end_date (ISO 8601 or Unix epoch seconds)
- `user_id` string[], nullable — Filter to one or more users; repeatable (user_id=a&user_id=b). Several values match any of them. At most 50 per call.
- `api_key_id` string[], nullable — Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call.
- `name` string, nullable — Filter to a single event type or metric name (e.g. 'tool_result', 'claude_code.commit.count')

## Response `200`

Successful Response

- AgentTelemetryCount — Total number of agent_telemetry rows matching a set of filters.
  - `total` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.net/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mozilla-ai/otari/revisions/866dfb3fb7eb/schema)
