Get Email Logs
Retrieve email event logs for a domain associated with your tenant: receptions, deliveries, opens, clicks, temporary failures, bounces, and complaints. Results are returned newest-first and paginated via next_token.
logs.sendrapp.org. Authenticate with your API key in the Authorization header.next_token.
Query parameters
All parameters are optional. Filters are combined with AND.type (e.g. Bounce) over a wide window scans a lot of history and can be slow. Narrow the search with start_timestamp / end_timestamp whenever possible.Event types
Filter with?type=<value>. One type per request.
Response codes
response_code accompanies most events. 4xx are temporary (auto-retried), 5xx are permanent.
Pagination
When more results exist, the response includes anext_token. Pass it back as ?next_token=<token> (keeping the same filters) to fetch the next page. When next_token is absent, you’ve reached the end.
Example response
peer_name and TLS fields only appear once a connection to the recipient server was made).Errors
400 Bad Request: Missing domain in the path401 Unauthorized: MissingAuthorizationheader or invalid API key500 Internal Server Error: Unexpected server error
Authorizations
Path Parameters
Sender domain to retrieve logs for (must belong to your tenant)
Query Parameters
Filter by a single event type (exact match). Cannot combine multiple types in one request.
Reception, Delivery, TransientFailure, Delayed, Bounce, OOBBounce, Opened, Click, Feedback Return all events for a single message (its uuid / the id field). When set, other filters and pagination are ignored.
Filter by recipient address (substring match)
Filter by sender address (substring match)
Filter by the full From header (substring match)
Filter by subject (substring match)
Filter by exact SMTP/internal response code (e.g. 421, 550). Note: code 400 is an internal Sendr code, not a real SMTP reply.
Start of the time window, Unix seconds. Defaults to 15 days ago when omitted.
End of the time window, Unix seconds. Defaults to now when omitted.
Page size. Defaults to 50.
Opaque cursor from a previous response's next_token, used to fetch the next page.