Resources
Emails
List and read the emails SignatureAPI sent for your account, including test-mode emails, with the SignatureAPI CLI emails commands.
The emails commands show the emails SignatureAPI sent for your account, such as signing requests and reminders. They show what the Dashboard’s 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. 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:
SIGNATUREAPI_KEY= npx signatureapi emails listSee the emails of an envelope
npx signatureapi emails list --envelope eb4cf433-a8af-4161-b37b-7ef57d423e56emails 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:
npx signatureapi emails list --search jane.doe@example.comRead an email
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.
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.
Usagenpx signatureapi emails list [options]
Options (5)
| Option | Description |
|---|---|
--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
npx signatureapi emails list
# List an envelope's live emails as JSON
npx signatureapi emails list --envelope 5e5ace5e-... --mode live --jsonRelated: Email Inspector
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.
Usagenpx signatureapi emails get <email-id> [options]
| Argument | Description |
|---|---|
<email-id> | ID of the email (eml_...), as emails list shows it. Required. |
Global options: --mode, --credential-store, --json.
# Show an email
npx signatureapi emails get eml_...Related: Email Inspector