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
Body
choose one of the options: opt_in if the user has allowed notification in this category and opt_out if user wants to discontinue notification in this category
Add array of channels if user wants to unsubscribe from particular channels in this category. Add channels as email, sms, whatsapp, androidpush, inbox, iospush, slack, webpush
Response
202
"Status Update Alert"
"status-update-alert"
"Send me updates when account status changes"
default preference of the category
"opt_in"
final user preference of the category
"opt_in"
false for categories where default preference is set to can't unsubscribe
true