---
title: "Get catch-all statistics"
method: GET
path: "/v1/email/catch-all/stats"
tags: ["Email"]
---

# Get catch-all statistics

`GET /v1/email/catch-all/stats`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/email/catch-all/stats`
- Auth: API key in header `x-api-key`

Returns catch-all receiving counters for a domain, adding an aggregated breakdown when `after` or `before` bounds a range: `after` inclusive, `before` exclusive.

## Query parameters

- `domainId` string, required
- `after` string, nullable
- `before` string, nullable

## Response `200`

Success

- object
  - `domain` string, required
  - `isCatchAllEnabled` boolean, required
  - `catchAllEmailCount` integer, required
  - `catchAllLastEmailAt` string, nullable, required
  - `timeRange` object, nullable
    - `emailsReceived` integer, required
    - `firstEmail` string, nullable, required
    - `lastEmail` string, nullable, required
    - `avgPerDay` number, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
