Get your transactional email activity aggregated per day
GET {{baseUrl}}/smtp/statistics/reports?limit=10&offset=0&startDate=&endDate=&days=7&tag=&sort=desc
This endpoint will show the aggregated stats for past 30 days by default if startDate and endDate OR days is not passed. The date range can not exceed 90 days
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
limit | number | Number of documents returned per page | |
offset | number | Index of the first document on the page | |
startDate | null | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) | |
endDate | null | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) | |
days | number | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | |
tag | null | Tag of the emails | |
sort | string | Sort the results in the ascending/descending order of record creation. Default order is descending if sort is not passed |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"reports":[{"date":"2017-04-30T00:00:00.000Z","requests":10756,"delivered":10103,"hardBounces":21,"softBounces":137,"clicks":1026,"uniqueClicks":720,"opens":5091,"uniqueOpens":2318,"spamReports":0,"blocked":519,"invalid":1,"unsubscribed":0},{"date":"2017-05-01T00:00:00.000Z","requests":18812,"delivered":17499,"hardBounces":34,"softBounces":254,"clicks":1514,"uniqueClicks":1090,"opens":10089,"uniqueOpens":4393,"spamReports":0,"blocked":920,"invalid":2,"unsubscribed":3}]}