Events are the queryable log of what happened to your mail: every attempt, the provider's reply, and the outcome. Use webhooks for live outcomes and events for backfills, audits, and support cases.
Get message events
GET/v1/events/message/{message_id}
Returns all events for a message.
Path parameters
message_idstringRequiredMessage UUID.
Query parameters
include_botsbooleanInclude bot/automation events.
curl "https://api.sendlib.com/v1/events/message/MESSAGE_ID?include_bots=false" \
-H "Authorization: Bearer $SENDLIB_API_KEY"{
"error": {
"message": "Missing or invalid API key."
}
}Get transmission events
GET/v1/events/transmission/{transmission_id}
Returns events for all messages in a transmission.
Path parameters
transmission_idstringRequiredTransmission UUID.
Query parameters
pageintegerPage number (min 1).
page_sizeintegerResults per page.
include_botsbooleanInclude bot/automation events.
curl "https://api.sendlib.com/v1/events/transmission/TRANSMISSION_ID?page=1&page_size=100" \
-H "Authorization: Bearer $SENDLIB_API_KEY"{
"error": {
"message": "Missing or invalid API key."
}
}Querying patterns
- Start from the
transmission_idreturned when you sent, or themessage_idon a webhook event. - Use pagination to backfill reliably.
- Combine filters to keep each query small.
Next
- Troubleshooting production issues: Troubleshooting
