Skip to main content
GET
/
audiences
JavaScript
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

cursor
string | null

A unique identifier that allows for fetching the next set of audiences

Response

paging
object
required
items
Audience · object[]
required