Skip to main content
WEBHOOK
AhaSend sends this event when an inbound email is received and processed through a configured route. Purpose: This webhook delivers complete inbound email data to your application for processing inbound emails (like support tickets, replies, etc.). Difference from message events:
  • Route events: Process inbound emails sent TO your domains
  • Message events: Track outbound emails sent FROM your domains
Route configuration:
  • Configure routes in your AhaSend dashboard
  • Choose whether to include attachments and headers
  • Set recipient filters and processing options
When attachments are enabled, attachments includes conventional attachments, inline MIME parts (such as images referenced by cid: URLs in html_body), and filename-bearing MIME parts that omit the Content-Disposition header. Use cases:
  • Support ticket systems
  • Email-to-ticket conversion
  • Automated email processing
  • Reply handling
When it’s sent: When an inbound email matches a configured route.

Body

application/json
type
enum<string>
required

The event type. message.routing is canonical; legacy route.message remains accepted as deprecated input.

Available options:
message.routing,
route.message
timestamp
string<date-time>
required

When the event occurred (ISO 8601 format)

route_id
string<uuid>
required

The route ID (the same ID as returned by the Create Route API)

data
object
required

Response

Webhook received successfully