Get all your SMS activity (unaggregated events)
GET {{baseUrl}}/transactionalSMS/statistics/events?limit=50&startDate=veniam elit in&endDate=veniam elit in&offset=0&days=13396752&phoneNumber=veniam elit in&event=bounces&tags=veniam elit in&sort=desc
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | number | Number of documents per page | |
startDate | string | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | |
endDate | string | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | |
offset | number | Index of the first document of the page | |
days | number | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | |
phoneNumber | string | Filter the report for a specific phone number | |
event | string | Filter the report for specific events | |
tags | string | Filter the report for specific tags passed as a serialized urlencoded array | |
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
{"events":[{"phoneNumber":"00911059469013","date":"2015-05-20T12:30:00.000Z","messageId":"1473139351170140","event":"sent","reason":"Recipient is currently unreachable","tag":"cabWaiting"},{"phoneNumber":"00911059469013","date":"2015-05-20T16:30:00.000Z","messageId":"1473139351170140","event":"delivered","reason":"Recipient is currently unreachable","tag":"cabRequest"}]}