Skip to main content
AhaSend CLI messages commands let you send, inspect and cancel email messages; this page covers their arguments and flags. Before running the examples, log in with a full API key, use your verified sender domain, and replace YOUR_RESOURCE_ID with a resource UUID from your test account. Create any named template, recipient, attachment, or JSON files first. Shell examples use Bash; examples that read JSON with jq need jq installed. Sends use sandbox mode.

Overview

Available subcommands:
  • send - Send email messages
  • list - List sent messages
  • get - Get details for one message
  • cancel - Cancel scheduled messages

Send Messages

Basic Usage

Recipients

Content Options

Testing

List Messages

Get a Message

Attachments are limited to 10 MB per file by the CLI. Scheduling uses RFC3339, in the future and within 7 days. Sandbox outcomes are deliver, bounce, defer, fail, and suppress; see sandbox mode.

Cancel Messages

Use the message UUID for get and cancel commands. If sending returns an ID such as <UUID@yourdomain.com>, extract the UUID as shown above.

Advanced Usage

For detailed information on batch processing and templating:

Next Steps

Command Flags

These flags come from the current CLI. All commands also accept the global flags.

messages cancel

messages get

This command has no command-specific flags. See global flags.

messages list

messages send