{
"type": "message.delivered",
"webhook_id": "abe11757-2886-4b55-96f1-0e0afc95795a",
"timestamp": "2024-05-06T09:50:16.687031577Z",
"data": {
"account_id": "4cdd7bdd-294e-4762-892f-83d40abf5a87",
"event": "on_delivered",
"from": "sender@example.com",
"recipient": "recipient@example.com",
"subject": "Welcome to our service",
"message_id_header": "<message-id-12345@localhost>",
"id": "407926766d2711f09b30960002cafe7c",
"delivery_attempt": {
"smtp_code": 250,
"enhanced_status_code": "2.0.0",
"response": "OK: queued",
"command": "DATA"
}
}
}Message Events
message.delivered Webhook Event
The message.delivered webhook fires when the recipient’s mail server accepts an email sent through AhaSend. Payload fields, example and caveats.
WEBHOOK
message.delivered
{
"type": "message.delivered",
"webhook_id": "abe11757-2886-4b55-96f1-0e0afc95795a",
"timestamp": "2024-05-06T09:50:16.687031577Z",
"data": {
"account_id": "4cdd7bdd-294e-4762-892f-83d40abf5a87",
"event": "on_delivered",
"from": "sender@example.com",
"recipient": "recipient@example.com",
"subject": "Welcome to our service",
"message_id_header": "<message-id-12345@localhost>",
"id": "407926766d2711f09b30960002cafe7c",
"delivery_attempt": {
"smtp_code": 250,
"enhanced_status_code": "2.0.0",
"response": "OK: queued",
"command": "DATA"
}
}
}AhaSend sends this event when an email has been successfully delivered to the recipient’s mail server.
This indicates that the recipient’s mail server has accepted the email. Note that this doesn’t guarantee the email reached the recipient’s inbox (it could still be filtered to spam).
When it’s sent: When the recipient’s mail server confirms successful delivery.
Related Guides
- API authentication, Permission scopes, Webhook setup.
- Event reference, Webhook CLI, Local webhook testing.
- Signature verification, Retry policy, API errors.
- API rate limits.
Body
application/json
The event type
Available options:
message.delivered The webhook ID (the same ID as returned by the Create Webhook API)
When the event occurred (ISO 8601 format)
Show child attributes
Show child attributes
Response
Webhook received successfully

