Audiences
The Audiences endpoint can be used to retrieve the full list of audiences associated with a bot. The audience id can then be used to stream conversation data based on its filter.
Request
The following request can be used to retrieve a bot audiences:
The mode parameter can have the following values
Value | Description |
broadcast_target | Will return only audiences created as broadcast targets. |
custom_filter | Will extract only audiences created as custom filters inside the convesations section. |
* | A wildcard value will extract all audiences, regardless of type. |
Response
If the call is successful, a list of audiences will be returned.
Response Codes
This endpoint will reply with the following standard HTTP codes.
Code | Meaning |
200 | Ok. The request has been successfully fulfilled. |
400 | Bad Request. The call does not contain the data required to be fulfilled. |
401 | Unauthorized. The account associated to the token is not authorized |
Last updated