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

# Get email statistics

`GET /v1/email/stats`

## Request

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

Returns aggregate email statistics — sent, delivered, bounced, and complained counts with their rates — optionally scoped to messages created from `after` (inclusive) to `before` (exclusive).

## Query parameters

- `after` string, nullable
- `before` string, nullable

## Response `200`

Success

- object
  - `totalSent` integer, required
  - `totalDelivered` integer, required
  - `totalBounced` integer, required
  - `totalComplained` integer, required
  - `deliveryRate` number, required
  - `bounceRate` number, required
  - `complaintRate` number, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `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)
