Resend
The robomotion resend CLI connects to Resend for transactional email delivery. It sends emails (HTML and text), manages contacts and audiences, handles domain verification, and supports batch email operations.
When to use
- Send transactional emails with HTML or plain text content
- Manage contacts and audience lists
- Verify and manage sending domains
- Send batch emails to multiple recipients
Prerequisites
robomotionCLI installed- Package installed:
robomotion install resend - Resend API key configured via Robomotion vault
IMPORTANT: Session Mode Required for Multi-Step Operations
Each CLI command runs as a separate process — connection IDs from connect do NOT persist across calls.
You MUST use --session on connect and pass --session-id to all subsequent commands.
Workflow
- Install (once):
robomotion install resend - Connect with session:
robomotion resend resend_connect --session --output json # → {"outClientId":"<client-id>","session_id":"<session-id>"} - Use the returned
client-idandsession-idin all subsequent commands:robomotion resend resend_send_email --client-id "<client-id>" --from <from> --to <to> --subject <subj> --html <body> --session-id "<session-id>" --output json - Disconnect when done:
robomotion resend resend_disconnect --client-id "<client-id>" --session-id "<session-id>" --output json
Always append --output json to get structured JSON results.
Commands Reference
robomotion resend resend_connect --session --output jsonConnects to Resend API and returns a client IDrobomotion resend resend_disconnect --client-id --session-id "<session-id>" --output jsonCloses the Resend connection and releases resourcesrobomotion resend resend_send_email --client-id --from --to --subject --body [--content-type] [--cc] [--bcc] [--reply-to] [--scheduled-at] [--tags] --session-id "<session-id>" --output jsonSends an email through Resendrobomotion resend resend_send_batch_email --client-id --emails --session-id "<session-id>" --output jsonSends up to 100 emails in a single API callrobomotion resend resend_get_email --client-id --email-id --session-id "<session-id>" --output jsonRetrieves details of a previously sent email by IDrobomotion resend resend_create_contact --client-id --email [--first-name] [--last-name] [--unsubscribed] --session-id "<session-id>" --output jsonCreates a new contact in Resendrobomotion resend resend_list_contacts --client-id [--20] [--after-cursor] --session-id "<session-id>" --output jsonLists contacts from Resend with pagination supportrobomotion resend resend_get_contact --client-id --contact-id-or-email --session-id "<session-id>" --output jsonRetrieves a contact by ID or email addressrobomotion resend resend_update_contact --client-id --contact-id-or-email [--first-name] [--last-name] [--unsubscribed] --session-id "<session-id>" --output jsonUpdates an existing contact's informationrobomotion resend resend_delete_contact --client-id --contact-id-or-email --session-id "<session-id>" --output jsonDeletes a contact by ID or email addressrobomotion resend resend_list_domains --client-id [--20] --session-id "<session-id>" --output jsonLists all verified sending domains in Resend
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)