# List emails

`emails_list`

The emails the workspace has sent, newest first, by status, time and search.

Needs the scope: `emails:read`

## Arguments

- `q` (string): Text to search for. Only items that contain it are returned. Up to 40 characters.
- `limit` (integer): How many items to return, from 1 to 100. Without it you get 25.
- `offset` (integer): How many items to skip. Use it with `limit` to read the next page. Default: `0`.
- `after` (string): The id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.
- `before` (string): The id of the first item you have. The answer ends with the item just before it. Give this or `after`, not both. Up to 64 characters.
- `range` (string): The period to look at: `today`, `week`, `month`, `year`, `all` or `custom`. Without it there is no limit in time. One of: `today`, `week`, `month`, `year`, `all`, `custom`.
- `from` (string): The first day of a `custom` period, as a date such as `2026-11-01`.
- `to` (string): The last day of a `custom` period, as a date such as `2026-11-30`.
- `status` (string): Only emails in this state. One of: `queued`, `sent`, `delivered`, `delayed`, `bounced`, `opened`, `clicked`, `complained`, `failed`, `scheduled`, `canceled`.
- `mode` (string): Only real emails (`live`) or only emails of the sandbox (`test`). One of: `live`, `test`.

## Returns

The answer comes back under `structuredContent`, with the same JSON as text in `content`. A call the API refuses comes back with `isError` set, and the code and the message under `structuredContent.error`. [MCP](https://opensend.sh/docs/mcp) shows how to connect a client.

- `object` ("list"): Always `list`.
- `data` (object[]): The items on this page.
- `data[].object` ("email"): Always `email`.
- `data[].id` (string): The id of the email.
- `data[].from` (string): The sender.
- `data[].to` (string[]): Who the email is for.
- `data[].subject` (string): The subject line.
- `data[].status` (string): Where the email is: `scheduled`, `queued`, `sent`, `delivered`, `delayed`, `bounced`, `complained`, `failed` or `canceled`, and `opened` or `clicked` once the recipient acts. One of: `queued`, `sent`, `delivered`, `delayed`, `bounced`, `opened`, `clicked`, `complained`, `failed`, `scheduled`, `canceled`.
- `data[].mode` (string): `live` for a real email. `test` for an email of the sandbox: it was sent with a test key or to test addresses, nothing left the service and what happened to it is simulated. One of: `live`, `test`.
- `data[].domain` (string): The domain it was sent from.
- `data[].cc` (string[]): Who got a copy.
- `data[].bcc` (string[]): Who got a copy without the others seeing.
- `data[].replyTo` (string | null): The address replies go to, or `null`.
- `data[].scheduledAt` (string | null): When it is due to be sent, or `null` for an email sent at once.
- `data[].createdAt` (string): When the API accepted the email.
- `total` (integer): How many items match in all, on every page together.
- `hasMore` (boolean): Whether more items follow this page.

## Example

MCP:

```json
{
  "name": "emails_list",
  "arguments": {
    "status": "bounced",
    "limit": 20
  }
}
```

Answer, under structuredContent:

```json
{
  "object": "list",
  "data": [
    {
      "object": "email",
      "id": "em_04",
      "from": "Acme <hello@mail.example.com>",
      "to": [
        "margaret@example.net"
      ],
      "subject": "Welcome aboard",
      "status": "bounced",
      "mode": "live",
      "domain": "mail.example.com",
      "cc": [],
      "bcc": [],
      "replyTo": null,
      "scheduledAt": null,
      "createdAt": "2026-11-27T06:30:00.000Z"
    }
  ],
  "total": 1,
  "hasMore": false
}
```
