Skip to main content
GET
Get Email Logs
Logs are served from a dedicated hostname: logs.sendrapp.org. Authenticate with your API key in the Authorization header.
Retrieve per-message email event logs for one of your tenant’s sender domains — receptions, deliveries, opens, clicks, temporary failures, bounces, and complaints. Results are returned newest-first and paginated with next_token.

Query parameters

All parameters are optional. Filters are combined with AND.
Filtering by a sparse 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 a next_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

Field availability per event depends on the event type and how far the message progressed (e.g. peer_name and TLS fields only appear once a connection to the recipient server was made).

Errors

  • 400 Bad Request: Missing domain in the path
  • 401 Unauthorized: Missing Authorization header or invalid API key
  • 500 Internal Server Error: Unexpected server error

Authorizations

Authorization
string
header
required

Path Parameters

domain
string
required

Sender domain to retrieve logs for (must belong to your tenant)

Query Parameters

type
enum<string>

Filter by a single event type (exact match). Cannot combine multiple types in one request.

Available options:
Reception,
Delivery,
TransientFailure,
Delayed,
Bounce,
OOBBounce,
Opened,
Click,
Feedback
message_id
string

Return all events for a single message (its uuid / the id field). When set, other filters and pagination are ignored.

recipient
string

Filter by recipient address (substring match)

sender
string

Filter by sender address (substring match)

from
string

Filter by the full From header (substring match)

subject
string

Filter by subject (substring match)

response_code
integer

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_timestamp
integer

Start of the time window, Unix seconds. Defaults to 15 days ago when omitted.

end_timestamp
integer

End of the time window, Unix seconds. Defaults to now when omitted.

limit
integer
default:50

Page size. Defaults to 50.

next_token
string

Opaque cursor from a previous response's next_token, used to fetch the next page.

Response

Logs retrieved successfully

events
object[]
required
count
integer
required

Number of events in this page

filters_applied
object

The non-null filters that were applied to this query

next_token
string

Cursor for the next page. Absent when there are no more results.