---
title: "Get email insights"
method: GET
path: "/emails/{id}/insights"
tags: ["Emails"]
---

# Get email insights

`GET /emails/{id}/insights`

## Request

- Base URL: `https://api.mepmail.dev`
- URL: `https://api.mepmail.dev/emails/{id}/insights`
- Auth: HTTP bearer

Returns the best-practice checks and the score computed when the email was sent.

## Path parameters

- `id` string, uuid, required

## Response `200`

Best-practice check results and score computed when the email was sent

- EmailInsightsResponse
  - `object` 'email_insights', required
  - `email_id` string, uuid, required
  - `score` number, required: Best-practice score, 0-10, one decimal
  - `score_version` integer, required
  - `band` 'excellent' | 'good' | 'needs_attention' | 'at_risk', required
  - `marketing` boolean, required
  - `html_size_bytes` integer, nullable, required
  - `computed_at` string, required
  - `checks` object[], required
    - `id` string, required: Check id from the @millionsend/core check catalog
    - `severity` 'critical' | 'major' | 'minor' | 'info', required
    - `status` 'pass' | 'fail' | 'passed_by_design' | 'not_applicable' | 'unknown', required
    - `penalty` number, required: Points deducted from the score; 0 unless status is fail
    - `detail` object

## Other responses

- `401`: Missing, malformed or invalid API key
- `403`: Restricted API key
- `404`: Not found
- `429`: Rate limit exceeded: 600 requests per minute per API key and 3,000 per team; wait for Retry-After

---

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