Get topic preferences for a recipient
curl --request GET \ --url 'https://rocketem.fotone.io/api/v2/recipients/preferences?audience=aud_xxxxxxxxxxxx&email=hello%40example.com' \ --header 'Authorization: Bearer <token>'Required scope: preferences:read
Returns the opt-out state for one email, keyed by topic public_ids. Everything is keyed by email — this also works for connector-only recipients that have no recipient record. An email without any opt-out rows is opted in to all active topics.
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 >
Preference Center (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“Current preference state
object
Topic opt-out state for one email (opt-out model — no entry = opted in)
object
HMAC-SHA256 hash of the email
object
Topic public_id
Where the opt-out came from (e.g. preference_center, api)
Public ids of all active topics the email is NOT opted out of
Example generated
{ "data": { "email_hash": "example", "opted_out_topics": [ { "id": "example", "name": "example", "opted_out_at": "2026-04-15T12:00:00Z", "source": "example" } ], "opted_in_topics": [ "example" ] }}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 }}Validation failed
object
object
object
Example
{ "error": { "code": "validation_error", "message": "The given data was invalid.", "status": 422 }}Organisation not configured for API access
object
object
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}