v1
latestOpenAPI 3.0.12026-07-2471135326.0 KBSubscribers
Add Contact to Blocklist
This endpoint allows you to add a contact to the blocklist in the same request.
According to the type of delivery channel, the contact can be added to the blocklist with its corresponding Sender.
NOTE: if the contact is added in different senders, regardless of the delivery channel, the end user will be able to receive messages. Therefore, each sender has its own blocklist.
For more information how to add a contact to the blocklist, go to the Blocklisted Contact section.
post/v2/subscribers
Request body
Example request
{
"to": "email@example.com",
"reason": "LIST_CLEANUP|CONTACT_COMPLAINT|SUPPORT_REQUEST",
"type": "SMS",
"from": "from",
"listType": "BLACK"
}Response
new contact added
Example response
{
"meta": {
"timestamp": 1597166699457,
"transactionId": "70169d77-c165-4795-9932-35b8a3af96fb",
"explain": "a descriptive text"
},
"data": {
"id": "507f1f77bcf86cd799439011",
"to": "584000000001,email@example.com",
"reason": "UNSUBSCRIBED, BOUNCED_PERMANENT,COMPLAINED"
}
}