Learn how to retrieve and filter email events using the SendLayer API
<apiKey>
with your actual SendLayer API key in the request header.Parameter | Type | Required | Description |
---|---|---|---|
startDate | number | No | Unix timestamp for the start of the date range |
endDate | number | No | Unix timestamp for the end of the date range |
event | string | No | Filter by event type (accepted, rejected, failed, delivered, opened, clicked, unsubscribed, complained) |
messageId | string | No | Filter by specific email Message ID |
startFrom | number | No | Starting position for pagination (default: 0) |
retrieveCount | number | No | Number of events to retrieve (default: 5) |
startFrom
and retrieveCount
for large datasetsHow far back can I retrieve events?
How often should I check for new events?
What timezone are the timestamps in?