Manage received (inbound) emails and attachments via Resend API. Use when user asks about their emails, received messages, or email attachments.
CLI for the Resend email API. Query received (inbound) emails and attachments.
npm install -g @mjrussell/resend-cli
export RESEND_API_KEY="re_your_key"resend email list # List recent emails (default 10)
resend email list -l 20 # List 20 emails
resend email list --json # Output as JSON
resend email get <id> # Show email details
resend email get <id> --json # Output as JSON
resend email attachments <email_id> # List attachments
resend email attachment <email_id> <attachment_id> # Get attachment metadata
resend email attachments <email_id> --json # Output as JSON
resend domain list # List configured domains
resend domain get <id> # Get domain details with DNS records
resend domain list --json # Output as JSON
User: "Do I have any new emails?"
resend email list -l 5
User: "Show me the latest email"
resend email list --json | jq -r '.data.data[0].id' # Get ID
resend email get <id>
User: "What attachments are on that email?"
resend email attachments <email_id>
User: "What domains do I have set up?"
resend domain list
User: "Show me the full content of email X"
resend email get <email_id>
--json flag and pipe to jq for scripting