Get the list of blocked or unsubscribed transactional contacts

GET {{baseUrl}}/smtp/blockedContacts?startDate=veniam elit in&endDate=veniam elit in&limit=50&offset=0&senders=ullamco,dolor elit aute&sort=desc

Request Params

KeyDatatypeRequiredDescription
startDatestringMandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts
endDatestringMandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts
limitnumberNumber of documents returned per page
offsetnumberIndex of the first document on the page
sendersstringComma separated list of emails of the senders from which contacts are blocked or unsubscribed
sortstringSort the results in the ascending/descending order of record creation. Default order is descending if sort is not passed

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"count":1,"contacts":[{"email":"abc@xyz.com","senderEmail":"ez312@gmal.com","reason":{"message":"Admin blocked","code":"adminBlocked"},"blockedAt":"2017-05-01T12:30:00.000Z"}]}