Command
nylas email read
Read a specific email. Supports decryption and signature verification.
Written by Qasim Muhammad Staff SRE
What does nylas email read do?
The nylas email read command displays the full content of a specific email by ID, including headers, body, and attachments. If the message was GPG-encrypted, it automatically decrypts using your local keyring. If the message was GPG-signed, it verifies the signature and reports validity.
Usage
nylas email read <message-id> [grant-id] [options]Flags
| Flag | Description |
|---|---|
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
| --raw | Show raw body without HTML |
| --mime | Show raw RFC822/MIME format |
| --decrypt | Decrypt PGP-encrypted email |
| --verify | Verify GPG signature |
| --mark-read | Mark as read after reading |
| --headers | Show email headers (works with all providers) |
Examples
The nylas email read command displays the full content of a specific email by ID, including headers, body, and attachments.
Read email
nylas email read msg_abc123Decrypt and verify
nylas email read msg_xyz789 --decrypt --verifyInbound inbox (with grant)
nylas email read msg_xyz123 inbox_abc123 --jsonExample output
From: Alice Chen <alice@example.com>
To: bob@example.com
Subject: Q3 planning
Date: 2026-06-21 09:14
Hi Bob, can we lock the Q3 roadmap by Friday? Thanks, AliceTroubleshooting
Message not found
Verify the message ID. For Inbound, ensure you pass the inbox (grant) ID.
Recommended guides
List Fastmail emails from the CLI
List Fastmail emails from the CLI through Nylas IMAP access, using app passwords, inbox filters, JSON output, and Fastmail-specific auth troubleshooting.
Why Cloud Servers Block SMTP Ports
AWS, GCP, and Azure block outbound SMTP port 25 while ports 587 and 465 stay open. Confirm the block and send email over an HTTPS API instead.
Send Email From a Docker Container
Cloud providers block SMTP port 25 from containers. Send email over an HTTPS API on port 443 with one command and no mail daemon at all.
MailerSend vs Nylas: Email Compared
MailerSend sends transactional email from verified domains. Nylas reads and syncs user inboxes across 6 providers. Compare features, pricing, and use cases.
Customer.io vs Nylas: Email Compared
Customer.io sends lifecycle emails to your user base. Nylas reads and sends from real user inboxes via OAuth. Compare use cases, pricing, and AI agent support.
Knock vs Nylas: Notifications vs Email API
Knock delivers multi-channel product notifications via workflows; Nylas provides two-way email and calendar sync. Compare scope, pricing, and agent support.
Run nylas email read --help for full help output.