Getting a list of recipients blocked due to incoming traffic
WhatsApp To get a list of recipients blocked due to unwanted incoming traffic in the WhatsApp channel, use the /api/channel-profile/subjects/blocked-addresses method.
- In all WhatsApp channels
- In a specific WhatsApp channel
If you want to get a list of all blocked recipients in all WhatsApp channels, send a GET request to the URL:
https://app.edna.io/api/channel-profile/subjects/blocked-addresses
If you want to get a list of all blocked recipients in a specific WhatsApp channel, specify the subject (the signature name) in the query parameter and send a GET request to the URL:
https://app.edna.io/api/channel-profile/subjects/blocked-addresses?subject=example_wa
To find out the name of the signature, use the API method to get a list of channels (the subject field).
Request format
An empty JSON is passed in the request body.
Response format
[
{
"subject": "string",
"addresses": [
"string",
"string"
]
}
]
Response example
The URL without the query parameter:
[
{
"subject": "example_wa1",
"addresses": [
"35701000000",
"35702000000",
"35703000000",
"35704000000"
]
},
{
"subject": "example_wa2",
"addresses": [
"35700000000"
]
},
{
"subject": "example_wa3",
"addresses": [
"35703000000"
]
},
{
"subject": "example_wa4",
"addresses": [
"35702000000",
"35703000000"
]
}
]
The URL with the query parameter:
[
{
"subject": "example_wa",
"addresses": [
"35700000000",
"35701000000",
"35702000000",
"35703000000"
]
}
]
If there are no blocked recipients in WhatsApp channels, an empty array of [] is returned.
Response parameters
| Parameter | Data type | Description |
|---|---|---|
subject | string | The name of the signature. |
addresses | array of strings | An array of recipient addresses — phone numbers or other unique identifiers. |