Zum Inhalt springen

List Custom Audiences

GET
/audiences
Code sample: Shell / cURL
curl --request GET \
--url https://rocketem.fotone.io/api/v2/audiences \
--header 'Authorization: Bearer <token>'

Required scope: recipients:read

The organisation’s audiences: first the newsletter (the first audience, always listed), then its Custom Audiences, separate recipient lists with their own consent, signup form and unsubscribe. Every audience has an id (aud_ plus 12 characters); it is what the audience parameter of the recipient endpoints takes.

Audience list

Media typeapplication/json
object
data
Array<object>
object
id

API identifier (aud_ plus 12 characters); the first entry is the newsletter

string
name

Internal name (the list’s name)

string
public_name

Name shown on the public pages

string
nullable
counts

Rows per status (pending, confirmed, not_required, unsubscribed, cleaned)

object
key
additional properties
integer
form_version

Saved versions of the signup form (0 = the simple form)

integer
signup_url
string format: uri
created_at
string format: date-time
nullable
meta
object
total
integer

Example

{
"data": [
{
"id": "aud_xxxxxxxxxxxx"
}
]
}

Invalid or missing API token

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}

Token lacks required scope

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}