Get a contact's details
GET {{baseUrl}}/contacts/:identifier
Along with the contact details, this endpoint will show the statistics of contact for the recent 90 days by default. To fetch the earlier statistics, please use Get contact campaign stats https://developers.sendinblue.com/reference/contacts-7#getcontactstats
endpoint with the appropriate date ranges.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
startDate | string | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate | |
endDate | string | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. | |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"email":"peggy.rain@example.com","id":42,"emailBlacklisted":false,"smsBlacklisted":false,"createdAt":"2017-05-02T16:40:31.000Z","modifiedAt":"2017-05-02T16:40:31.000Z","attributes":{"FIRST_NAME":"Peggy","LAST_NAME":"Rain","SMS":"3087433387669","CIV":"1","DOB":"1986-04-13T00:00:00.000Z","ADDRESS":"987 5th avenue","ZIP_CODE":"87544","CITY":"New-York","AREA":"NY"},"listIds":[40],"statistics":{"messagesSent":[{"campaignId":21,"eventTime":"2016-05-03T20:15:13.000Z"},{"campaignId":42,"eventTime":"2016-10-17T10:30:01.000Z"}],"opened":[{"campaignId":21,"count":2,"eventTime":"2016-05-03T21:24:56.000Z","ip":"66.249.93.118"},{"campaignId":68,"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"}]}}