Block Users
Endpoints for managing blocking of WhatsApp Users
Get a paginated list of blocked WhatsApp user numbers on your WhatsApp Business number.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Maximum number of blocked users to fetch in the request
Cursor for pagination - fetch results after this cursor
Cursor for pagination - fetch results before this cursor
Blocked users retrieved successfully
Response payload for getting the list of blocked users
Bad request
Unauthorized
Internal server error
GET /block_users HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": [
{
"block_users": [
{
"input": "1234567890",
"wa_id": "1234567890"
}
]
}
],
"paging": {
"cursors": {
"after": "MTAxNTExOTQ1MjAwNzI5NDE=",
"before": "NDMyNzQyODI3OTQw"
},
"next": "https://graph.facebook.com/{version}/{phone-number-id}/block_users?limit=25&after=MTAxNTExOTQ1MjAwNzI5NDE=",
"previous": "https://graph.facebook.com/{version}/{phone-number-id}/block_users?limit=10&before=NDMyNzQyODI3OTQw"
}
}Block a list of WhatsApp user numbers from contacting your business. When you block a WhatsApp user, the user cannot contact your business or see that you are online, and your business cannot message the user.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Block users request payload
whatsappUsers blocked successfully
Response payload for successful block users operation
whatsappMixed success/failure or bad request
Unauthorized
Internal server error
POST /block_users HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"block_users": [
{
"user": "1234567890"
}
],
"messaging_product": "whatsapp"
}{
"block_users": {
"added_users": [
{
"input": "1234567890",
"wa_id": "1234567890"
}
],
"failed_users": [
{
"errors": [
{
"code": 131047,
"error_data": {
"details": "text"
},
"message": "Re-engagement required"
}
],
"input": "1234567890",
"wa_id": "1234567890"
}
]
},
"messaging_product": "whatsapp"
}Unblock a list of WhatsApp user numbers, allowing them to contact your business again.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Unblock users request payload
whatsappUsers unblocked successfully
Response payload for successful unblock users operation
whatsappMixed success/failure or bad request
Unauthorized
Internal server error
DELETE /block_users HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"block_users": [
{
"user": "1234567890"
}
],
"messaging_product": "whatsapp"
}{
"block_users": {
"added_users": [
{
"input": "1234567890",
"wa_id": "1234567890"
}
],
"failed_users": [
{
"errors": [
{
"code": 131047,
"error_data": {
"details": "text"
},
"message": "Re-engagement required"
}
],
"input": "1234567890",
"wa_id": "1234567890"
}
]
},
"messaging_product": "whatsapp"
}Last updated
Was this helpful?