---
title: "Emails"
description: "List and read the emails SignatureAPI sent for your account, including test-mode emails, with the SignatureAPI CLI emails commands."
canonical: "https://signatureapi.com/docs/cli/emails"
source: "https://signatureapi.com/docs/cli/emails.md"
last_verified_api_version: "1.18.1"
---

# Emails

List and read the emails SignatureAPI sent for your account, including test-mode emails, with the SignatureAPI CLI emails commands.

_Last verified against API version 1.18.1._

The `emails` commands show the emails SignatureAPI sent for your account, such as signing requests and reminders. They show what the Dashboard's [Emails](https://signatureapi.com/docs/dashboard/emails) page shows, including the test-mode emails that never reach recipients.

They act in test mode unless you pass `--mode live`.

## Sign in first

The `emails` commands need the CLI [sign-in](https://signatureapi.com/docs/cli/sign-in). They don't use an API key: with `SIGNATUREAPI_KEY` set, they fail with `sign-in-required` (exit code `2`) before any request.

If `SIGNATUREAPI_KEY` is exported in your shell, empty it for the command:

```bash
SIGNATUREAPI_KEY= npx signatureapi emails list
```

## See the emails of an envelope

```bash
npx signatureapi emails list --envelope eb4cf433-a8af-4161-b37b-7ef57d423e56
```

`emails list` shows emails newest first, 20 per page. To narrow the list, filter by recipient with `--recipient re_...`, or by text in the subject or the to address with `--search`:

```bash
npx signatureapi emails list --search jane.doe@example.com
```

## Read an email

```bash
npx signatureapi emails get eml_...
```

`emails get` shows the email's status, its addresses and subject, and a short-lived link to its HTML. Anyone with the link can read the email until it expires, so keep it out of shared logs.

## Command reference

Generated from the help of the published `signatureapi` package.

Commands of the `signatureapi` CLI, version 0.7.1. Run `npx signatureapi <command> --help` for the same text in a terminal.

### `emails list`

List the emails SignatureAPI sent for the account, newest first, up to 20 per page. Filter by envelope, recipient or text, and pass --cursor to get the next page.

```bash
npx signatureapi emails list [options]
```

Options:

- `--envelope <envelope-id>`: Only this envelope's emails
- `--recipient <recipient-id>`: Only emails to this recipient (re_...)
- `--search <text>`: Only emails whose subject or to address matches this text
- `--limit <count>`: Emails per page, 1 to 20 (default: 20)
- `--cursor <cursor>`: Cursor of the page to get, from a previous result's next_cursor

Global options: `--mode`, `--credential-store`, `--json`.

List recent test emails:

```bash
npx signatureapi emails list
```

List an envelope's live emails as JSON:

```bash
npx signatureapi emails list --envelope 5e5ace5e-... --mode live --json
```

Related: https://signatureapi.com/docs/dashboard/emails

### `emails get`

Show an email: its status, addresses, subject and a short-lived link to its HTML. Anyone with the link can read the email until it expires.

```bash
npx signatureapi emails get <email-id> [options]
```

Arguments:

- `<email-id>`: ID of the email (eml_...), as emails list shows it

Global options: `--mode`, `--credential-store`, `--json`.

Show an email:

```bash
npx signatureapi emails get eml_...
```

Related: https://signatureapi.com/docs/dashboard/emails
