Learn how to send emails using AhaSend’s API v2 create-message endpoint with comprehensive examples and best practices
Authorization Header
Account ID
{account_id}
in the URL with your actual account ID. The API Key must be created within this account.Message Status
queued
- Message accepted and queued for deliveryscheduled
- Message scheduled for future deliveryfailed
- Message failed validation or processingMessage ID
Schedule Information
schedule
parameter in your request, the response will include timing information including the scheduled first attempt and expiration.400 - Bad Request
from
, recipients
, subject
)text_content
or html_content
401 - Unauthorized
403 - Forbidden
409 - Conflict
Content Requirements
text_content
or html_content
is requiredhtml_content
Sender Domain
from.email
must be from a domain you ownRetention Settings
retention.metadata
must be between 1 and 30 daysretention.data
must be between 0 and 30 daysScheduling Format
"2024-12-25T10:30:00Z"
Idempotency
Template Variables
Bulk Operations
Error Handling