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

# Get an email by ID

`GET /emails/{id}`

## Request

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

## Path parameters

- `id` string, required

## Response `200`

Email details

- EmailResponse
  - `bcc_addresses` string[], nullable
  - `cc_addresses` string[], nullable
  - `click_count` integer, required: Number of times links in the email were clicked
  - `created_at` string, required
  - `domain_id` integer, nullable
  - `error_message` string, nullable
  - `first_clicked_at` string, nullable: When a link was first clicked
  - `first_opened_at` string, nullable: When the email was first opened
  - `from_address` string, required
  - `from_name` string, nullable
  - `headers` object, nullable
  - `html_body` string, nullable
  - `id` string, required
  - `open_count` integer, required: Number of times the email was opened
  - `project_id` integer, nullable
  - `provider_message_id` string, nullable
  - `reply_to` string, nullable
  - `sent_at` string, nullable
  - `status` string, required
  - `subject` string, required
  - `tags` string[], nullable
  - `text_body` string, nullable
  - `to_addresses` string[], required
  - `track_clicks` boolean, required: Whether click tracking is enabled
  - `track_opens` boolean, required: Whether open tracking is enabled
  - `tracked_html_body` string, nullable: The final HTML sent to the provider (with tracking pixel and rewritten links)

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Email not found
- `500`: Internal server error

## Changes

- **2026-04-25** `774be20905f2`: 7 info
  - added the optional property `first_clicked_at` to the response with the `200` status
  - added the optional property `first_opened_at` to the response with the `200` status
  - added the optional property `tracked_html_body` to the response with the `200` status
  - added the required property `click_count` to the response with the `200` status
  - …3 more
- **2026-01-11** `50604ba8d4a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/emails/:id/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)
