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:

curl --location --request GET 'https://publicapi.xenioo.com/peoples/audiences/<MODE>' \
--header 'Authorization: Bearer <BOT_AUTH_TOKEN>' \

The mode parameter can have the following values

Response

If the call is successful, a list of audiences will be returned.

[
    {
        "Id": "...",
        "Name": "My Audience",
        "Type": "broadcast_target"
    }
]

Response Codes

This endpoint will reply with the following standard HTTP codes.

Last updated