---
title: "Query Metrics"
method: GET
path: "/v0/metrics"
tags: ["Metrics"]
---

# Query Metrics

`GET /v0/metrics`

**CLI:**
```bash
agentmail metrics list
```

## Query parameters

- `event_types` MetricEventType[] — List of metric event types to query.
- `start` string, date-time — Start timestamp for the query.
- `end` string, date-time — End timestamp for the query.
- `period` string — Period in number of seconds for the query.
- `limit` integer — Limit on number of buckets to return.
- `descending` boolean — Sort in descending order.

## Response `200`

- QueryMetricsResponse — Metrics grouped by event type.

## Other responses

- `400`

## Changes

- **2026-03-31** `27965096e618` — 3 warning, 8 info
  - deleted the `query` request parameter `end_timestamp`
  - deleted the `query` request parameter `start_timestamp`
  - removed the optional property `message` from the response with the `200` status
  - api operation id `metrics_list` removed and replaced with `metrics_query`
  - …7 more
- **2026-03-28** `8a5b5e92ae2d` — 2 breaking, 5 warning, 4 info
  - added the new required `query` request parameter `end_timestamp`
  - added the new required `query` request parameter `start_timestamp`
  - deleted the `query` request parameter `descending`
  - deleted the `query` request parameter `end`
  - …7 more
- **2026-03-08** `aad781212acd` — 3 warning, 8 info
  - deleted the `query` request parameter `end_timestamp`
  - deleted the `query` request parameter `start_timestamp`
  - removed the optional property `message` from the response with the `200` status
  - api operation id `metrics_list` removed and replaced with `metrics_query`
  - …7 more

[Change history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/metrics/get.md)

---

[API](https://skmtc.dev/agentmail-to/apis/api.md) · [All operations](https://skmtc.dev/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentmail-to/api/revisions/830c24d3ff39/schema)
