New to message routing? Start with our comprehensive routing guide to learn how to create and configure message routes in your dashboard before diving into the API details.
Overview
Message routing provides intelligent inbound email handling with:- Pattern-based routing using exact addresses or wildcards (
*
,ticket-*
,*-support
) - Real-time delivery via HTTP POST to your configured endpoints
- Flexible processing options for attachments, headers, and reply extraction
- Secure payload delivery following the Standard Webhooks specification
Prerequisites
Message routing requires:- Domain added and verified in AhaSend
- MX records pointing to AhaSend mail servers
- Endpoint accepting HTTP POST requests with 2xx responses
Payload Structure
All routing events use a consistent JSON structure:Security Headers
Every routing request includes security headers for verification:webhook-id
: Unique event identifier for idempotencywebhook-timestamp
: Unix timestamp when the route was triggeredwebhook-signature
: HMAC signature for payload verification