Skip to main content
These AhaSend CLI examples show common email sending and management tasks, including sandbox tests and automation. 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 and Python 3 for portable future dates; examples that read JSON with jq need jq installed. Sends use sandbox mode.

Transactional Emails

Order Confirmation

order-data.json:

Password Reset

Account Verification

Lifecycle Notifications

Account Activity Digest

Account Feature Notifications

Pending Order Reminder

Notification Systems

Real-Time Alerts

Daily Reports

Webhook Integration

Process Webhook Events

The receiver processes payload.type and payload.data.recipient. CLI listener output is for people, not a line-delimited JSON stream. See webhook verification and processing. AhaSend already creates cause-dependent automatic suppressions; see suppression durations.

Webhook Testing Pipeline

Automation Scripts

CI/CD Email Notifications

Database Backup Notifications

User Onboarding Sequence

Performance Testing

Load Testing Script

Multi-Environment Management

Environment-Specific Sending

Next Steps