Skip to main content
GET
/
audiences
/
{audience_id}
/
members
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: 'My API Key',
});

const response = await client.audiences.listMembers('audience_id');

console.log(response.items);
{
  "paging": {
    "cursor": "<string>",
    "more": true
  },
  "items": [
    {
      "added_at": "<string>",
      "audience_id": "<string>",
      "audience_version": 123,
      "member_id": "<string>",
      "reason": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

audience_id
string
required

A unique identifier representing the audience id

Query Parameters

cursor
string | null

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

Response

paging
object
required
items
AudienceMember · object[]
required