API to fetch user preferences for a given category.
Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.
distinct_id of the user whose preferences should be fetched
notification category slug. You can get this from Notification Categories page on SuprSend dashboard -> Settings page
to fetch user preferences for a particular tenant
set this flag to true if you want to fetch channel list for opt-out categories.
Locale code (e.g., es, fr, de, ja, es-AR) to fetch preference translations in user's locale. When provided, the API looks for category and section names and descriptions in the respective locale file.
If a translation is missing for the requested locale, the system automatically falls back in this order: locale-region (e.g., es-AR) → locale (e.g., es) → en (English - always available).
200
name of the notification category
"Newsletter"
category slug identifier
"newsletter"
description of the notification category
"Send me updates on new product updates"
default preference of the category
null
updated user preference of the category
"opt_in"
false when category default preference is set to can't unsubscribe
false
channel level preference in the category