---
title: "Get email statistics"
method: GET
path: "/emails/stats"
tags: ["Emails"]
---

# Get email statistics

`GET /emails/stats`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/emails/stats`
- Auth: HTTP bearer

## Query parameters

- `domain_id` integer

## Response `200`

Email statistics

- EmailStatsResponse
  - `captured` integer, required: Emails captured without sending (Mailhog mode - no provider configured)
  - `delivery_unknown` integer, required: Emails whose provider accepted/rejected outcome could not be determined
  - `failed` integer, required
  - `queued` integer, required
  - `sending` integer, required: Emails currently owned by an active provider delivery attempt
  - `sent` integer, required
  - `total` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-09-07** `cdc1afae1752`: 2 info
  - added the required property `delivery_unknown` to the response with the `200` status
  - added the required property `sending` to the response with the `200` status
- **2026-09-07** `f7404eb7ac98`: 2 breaking
  - removed the required property `delivery_unknown` from the response with the `200` status
  - removed the required property `sending` from the response with the `200` status
- **2026-08-20** `e44b3af8c6ed`: 2 info
  - added the required property `delivery_unknown` to the response with the `200` status
  - added the required property `sending` to the response with the `200` status
- **2026-01-11** `50604ba8d4a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/emails/stats/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
