Get User Preferences
Single Category
API to get user category preferences
GET
Authorizations
Pass as Bearer <API_KEY>
. Get API Key from SuprSend dashboard Developers -> API Keys section.
Path Parameters
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
Query Parameters
to fetch user preferences for a particular tenant
set this flag to true
if you want to fetch channel list for opt-out categories.
Response
200
application/json
200
Example:
"Newsletter"
Example:
"newsletter"
Example:
"Send me updates on new product updates"
default preference of the category
updated user preference of the category
Available options:
opt_in
, opt_out
false when category default preference is set to can't unsubscribe
channel level preference in the category