Audiences
List all audiences
Audiences
AuthTokens
Brands
Inbound
Lists
Messages
Notifications
Profiles
Tenants
User Preferences
User Tenants
Audiences
List all audiences
Get the audiences associated with the authorization token.
GET
/
audiences
curl --request GET \
--url https://api.courier.com/audiences \
--header 'Authorization: Bearer <token>'
{
"items": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"filter": {
"operator": "ENDS_WITH",
"value": "<string>",
"path": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
],
"paging": {
"cursor": "<string>",
"more": true
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
A unique identifier that allows for fetching the next set of audiences
Response
200
application/json
A unique identifier representing the audience_id
The name of the audience
A description of the audience
A single filter to use for filtering
The operator to use for filtering
Available options:
ENDS_WITH
, EQ
, EXISTS
, GT
, GTE
, INCLUDES
, IS_AFTER
, IS_BEFORE
, LT
, LTE
, NEQ
, OMIT
, STARTS_WITH
The value to use for filtering
The attribe name from profile whose value will be operated against the filter value
curl --request GET \
--url https://api.courier.com/audiences \
--header 'Authorization: Bearer <token>'
{
"items": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"filter": {
"operator": "ENDS_WITH",
"value": "<string>",
"path": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
],
"paging": {
"cursor": "<string>",
"more": true
}
}