Documentation
Sign inGet started

Create an audience

POST
/v1/audiences
const audience = await bird.audiences.create({ name: "Newsletter subscribers" });
console.log(audience.id); // "adn_…"
Creates an audience in the workspace. New audiences start empty: add members with Add contacts to an audience or through Create or update contacts in bulk. Only static audiences can be created today; requesting dynamic or external returns a validation error.
Anfrage-Nutzlast
name
string
erforderlich
Display name for the audience.
description
string
Longer description of who this audience is.
type
string
How the audience's recipients are determined. static is an explicit member list you manage by adding and removing contacts.
Possible values: static
Antwort-Payload
id
string
erforderlich
ID of the audience (adn_-prefixed), accepted by every operation that takes an audience_id.
name
string
erforderlich
Display name for the audience.
description
nullable string
Longer description of who this audience is.
type
string
erforderlich
How the audience's recipients are determined. static is an explicit member list you manage by adding and removing contacts.
Possible values: static
created_at
string
erforderlich
updated_at
string
erforderlich