Get Directory Contact History
GET {{baseUrl}}/directories/:directoryId/contacts/:contactId/history?type=email&offset=0&pageSize=100
Retrieve the history for contacts in a directory.
<!--From Readme-->
For the last page of results, the value associated with nextPage
will be null
.
<!-- theme: warning -->
This API call is only available to XM Directory users.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
type | string | (Required) The desired history type; one of two values: email and response | |
offset | number | The start position for pagination | |
pageSize | number | The maximum number of items to return per request |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"result":{"elements":[{"distributionId":"EMD_1234567890abcde","date":"2010-09-24T04:10:21.574Z","type":"U","result":"Success","bounceInfo":{"type":"nostrud ex"},"surveyId":"SV_cHbKMOdeT8NetF3","read":false},{"distributionId":"EMD_1234567890abcde","date":"1958-12-29T10:04:51.773Z","type":"non proident laboris Ut","result":"Bounce","bounceInfo":{"type":"proident et"},"surveyId":"SV_cHbKMOdeT8NetF3","read":false}],"nextPage":"amet esse ullamco"},"meta":{"httpStatus":"aute ea Ut","requestId":"dolor reprehenderit quis","notice":"cupidatat commodo laboris"}}