<Intro>

<EndpointHeader />

<Description>

Returns a paginated list of audiences in the workspace, newest first. Filter to audiences whose name contains a substring with `q`.

</Description>

</Intro>

<Parameters in="query">

<Parameter name="q" type="string">

<Description>

Case-insensitive substring match against the audience's name.

</Description>

</Parameter>

<Parameter name="limit" type="integer">

<Description>

Maximum number of items to return per page.

</Description>

</Parameter>

<Parameter name="starting_after" type="string">

<Description>

Cursor from the `next_cursor` field of a previous list response. Returns items immediately after the cursor position in the current sort order.

</Description>

</Parameter>

<Parameter name="ending_before" type="string">

<Description>

Cursor from the `prev_cursor` field of a previous list response. Returns items immediately before the cursor position in the current sort order.

</Description>

</Parameter>

</Parameters>

<Payload kind="response">

<Field name="data" type="array of object" required>

<Description>

Page of audience objects.

</Description>

<FieldChildren kind="response">

<Field name="id" type="string" prefix="data." required>

<Description>

ID of the audience (`adn_`-prefixed), accepted by every operation that takes an `audience_id`.

</Description>

</Field>

<Field name="name" type="string" prefix="data." required>

<Description>

Display name for the audience.

</Description>

</Field>

<Field name="description" type="nullable string" prefix="data.">

<Description>

Longer description of who this audience is.

</Description>

</Field>

<Field name="type" type="string" prefix="data." required>

<Description>

How the audience's recipients are determined. `static` (the default) is an explicit member list you manage via the API. `dynamic` and `external` are preview values and currently unavailable; creating an audience with either returns a validation error.

</Description>

<Description>

Possible values: `static`, `dynamic`, `external`

</Description>

</Field>

<Field name="created_at" type="string" prefix="data." required />

<Field name="updated_at" type="string" prefix="data." required />

</FieldChildren>

</Field>

<Field name="next_cursor" type="nullable string" required>

<Description>

Cursor for the next page. Pass back as `starting_after` to advance forward. Null when no next page exists.

</Description>

</Field>

<Field name="prev_cursor" type="nullable string" required>

<Description>

Cursor for the previous page. Pass back as `ending_before` to step backward. Null when no previous page exists.

</Description>

</Field>

<Field name="refresh_cursor" type="nullable string" required>

<Description>

Refresh anchor. Pass back as `ending_before` later to fetch items that have appeared since this response. Non-null whenever `data` is non-empty; null only on an empty page. Distinct from `prev_cursor`.

</Description>

</Field>

</Payload>