---
title: "Query Metrics"
method: GET
path: "/v0/inboxes/{inbox_id}/metrics"
tags: ["InboxesMetrics"]
---

# Query Metrics

`GET /v0/inboxes/{inbox_id}/metrics`

## Path parameters

- `inbox_id` string, required — The ID of the inbox.

## 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-08** `aad781212acd` — 3 warning, 7 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 `inboxes_metrics_get` removed and replaced with `inboxes_metrics_query`
  - …6 more

[Change history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/inboxes/:inbox_id/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.dev/agentmail-to/apis/api/revisions/f49e3de8fad0?raw)
