Get email campaigns' statistics for a contact

GET {{baseUrl}}/contacts/:identifier/campaignStats?startDate=veniam elit in&endDate=veniam elit in

Request Params

KeyDatatypeRequiredDescription
startDatestringMandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
endDatestringMandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"from":"sendermail@example.com","tags":["tag1","tag2"],"messagesSent":[{"campaignId":21,"eventTime":"2016-05-03T20:15:13.000Z"},{"campaignId":42,"eventTime":"2016-10-17T10:30:01.000Z"},{"campaignId":45,"eventTime":"2016-11-09T11:45:02.000Z"}],"opened":[{"campaignId":21,"count":2,"eventTime":"2016-05-03T21:24:56.000Z","ip":"66.249.93.118"},{"campaignId":45,"count":1,"eventTime":"2017-01-30T13:56:40.000Z","ip":"66.249.93.217"}],"clicked":[{"campaignId":21,"links":[{"count":2,"eventTime":"2016-05-03T21:25:01.000Z","ip":"66.249.93.118","url":"https://url.domain.com/fbe5387ec717e333628380454f68670010b205ff/1/go?uid={EMAIL}\u0026utm_source=sendinblue\u0026utm_campaign=test_camp\u0026utm_medium=email"}]}],"delivered":[{"campaignId":21,"count":2,"eventTime":"2016-05-03T21:24:56.000Z","ip":"66.249.93.118"}]}