---
title: "List emails with optional filtering"
method: GET
path: "/emails"
tags: ["Emails"]
---

# List emails with optional filtering

`GET /emails`

## Request

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

## Query parameters

- `domain_id` integer, nullable
- `project_id` integer, nullable
- `status` string, nullable
- `from_address` string, nullable
- `page` integer, nullable
- `page_size` integer, nullable

## Response `200`

List of emails

- PaginatedEmailsResponse
  - `data` EmailResponse[], required
    - `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)
  - `page` integer, required
  - `page_size` integer, required
  - `total` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-04-25** `774be20905f2`: 7 info
  - added the optional property `data/items/first_clicked_at` to the response with the `200` status
  - added the optional property `data/items/first_opened_at` to the response with the `200` status
  - added the optional property `data/items/tracked_html_body` to the response with the `200` status
  - added the required property `data/items/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/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)
