---
title: "Sent emails aggregated by reason"
method: GET
path: "/api/analytics/dropouts/by-reason"
tags: ["analytics"]
---

# Sent emails aggregated by reason

`GET /api/analytics/dropouts/by-reason`

Returns sent_emails aggregated by reason_value for the given email_type (e.g. abbandono). Sorted by total descending.

## Query parameters

- `email_type` string — Email type filter (e.g. abbandono).

## Response `200`

Successful Response

- SentEmailsByReasonResponse — Sent emails by reason response model.
  - `items` SentEmailsByReasonRow[], required — Rows sorted by total descending
    - `reason_value` string, required — Reason value (empty/null normalized to 'other')
    - `total` integer, required — Total count (sum of counter) for this reason

## Other responses

- `422` — Validation Error

---

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