List blocked users
Integration summary
- Base URL:
https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services- Token: admin token, in the
Authorization: Bearer {{admin-token}}header (how to generate it)- Endpoints on this page:
GET /v1/block_users/{{waba_id}}: List blocked users by WABAGET /v1/block_users/{{waba_id}}/{{phone_number_id}}: List blocked users by phone number
List the blocked users of your whole WABA or of one phone number. If the request succeeds, the service returns HTTP 200 and a list of users.
List blocked users by WABA
Request
List blocked users by WABA request:
| URL | https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/block_users/{{waba_id}} |
| Method | GET |
Headers
List blocked users by WABA headers:
| Name | Description | Type | Requirements |
|---|---|---|---|
| Authorization | Admin token. See Generate authentication token. | String | Required |
Parameters
List blocked users by WABA parameters:
| Name | Description | Type | Requirements |
|---|---|---|---|
| waba_id | WhatsApp Business Account ID. | String | Required |
| blocked | Filters by status: true returns only blocked users, false returns only unblocked users. Send it as a query parameter. | Boolean |
|
Example
Complete List blocked users by WABA example:
curl --location 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/block_users/{{waba_id}}?blocked=true' \--header 'Authorization: Bearer {{admin-token}}'
Response
List blocked users by WABA response:
Applies to both the WABA and the phone number queries. The service returns HTTP 200 and a list of users.
| Name | Description | Type |
|---|---|---|
| phone_number_id | ID of the phone number that blocked the user. Only included in the WABA query. | String |
| input | Identifier used in the block request. | String |
| status | The user's current status. Possible values:
| String |
[{"phone_number_id": "1234567890","input": "521550123456","status": "BLOCKED"},{"phone_number_id": "1234567890","input": "US.13491208655302741918","status": "BLOCKED"}]
List blocked users by phone number
Request
List blocked users by phone number request:
| URL | https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/block_users/{{waba_id}}/{{phone_number_id}} |
| Method | GET |
Headers
List blocked users by phone number headers:
| Name | Description | Type | Requirements |
|---|---|---|---|
| Authorization | Admin token. See Generate authentication token. | String | Required |
Parameters
List blocked users by phone number parameters:
| Name | Description | Type | Requirements |
|---|---|---|---|
| waba_id | WhatsApp Business Account ID. | String | Required |
| phone_number_id | ID of the phone number to query. | String | Required |
| blocked | Filters by status: true returns only blocked users, false returns only unblocked users. Send it as a query parameter. | Boolean |
|
Example
Complete List blocked users by phone number example:
curl --location 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/block_users/{{waba_id}}/{{phone_number_id}}?blocked=true' \--header 'Authorization: Bearer {{admin-token}}'
Response
List blocked users by phone number response:
Applies to both the WABA and the phone number queries. The service returns HTTP 200 and a list of users.
| Name | Description | Type |
|---|---|---|
| phone_number_id | ID of the phone number that blocked the user. Only included in the WABA query. | String |
| input | Identifier used in the block request. | String |
| status | The user's current status. Possible values:
| String |
[{"input": "521550123456","status": "BLOCKED"},{"input": "US.13491208655302741918","status": "BLOCKED"}]
