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
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const audiences = await client.audiences.list();
console.log(audiences.items);{
"paging": {
"cursor": "<string>",
"more": true
},
"items": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"filter": {
"operator": "ENDS_WITH",
"value": "<string>",
"path": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
]
}Get the audiences associated with the authorization token.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const audiences = await client.audiences.list();
console.log(audiences.items);{
"paging": {
"cursor": "<string>",
"more": true
},
"items": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"filter": {
"operator": "ENDS_WITH",
"value": "<string>",
"path": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A unique identifier that allows for fetching the next set of audiences