List topic preferences catalog
curl --request GET \ --url 'https://rocketem.fotone.io/api/v2/preferences/topics?audience=aud_xxxxxxxxxxxx' \ --header 'Authorization: Bearer <token>'Required scope: preferences:read
Returns the organisation’s newsletter topics (non-deleted) for the preference model. Topics use an opt-out model: a recipient with no opt-out row is opted in.
Requires preferences:read scope.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Query Parameters
Abschnitt betitelt „Query Parameters“Example
aud_xxxxxxxxxxxxThe audience to work on, by its identifier (aud_ plus 12 characters). The app shows it under Settings >
Signup & unsubscribe (pick the audience) > General and, with Custom Audiences on, lists all under Settings > API;
GET /audiences returns them as id. The first audience’s identifier, or no
parameter, addresses the newsletter. Unknown or trashed audience: 404 audience_not_found; on an endpoint
without the parameter: 422 audience_not_supported.
Responses
Abschnitt betitelt „Responses“Topic list (ordered by sort_order)
object
object
Topic public_id (tp_…)
Internal topic name
Language-keyed display labels (e.g. {“de”: “…”, “en”: “…”})
object
Language-keyed descriptions
object
Example generated
{ "data": [ { "id": "example", "name": "example", "labels": { "additionalProperty": "example" }, "descriptions": { "additionalProperty": "example" }, "is_active": true, "sort_order": 1 } ]}Invalid or missing API token
object
object
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}Token lacks required scope
object
object
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}Organisation not configured for API access
object
object
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}