GET
/
v1
/
user
/
{distinct_id}
/
preference
/
channel_preference
curl --request GET \
  --url https://hub.suprsend.com/v1/user/{distinct_id}/preference/channel_preference/ \
  --header 'Authorization: Bearer <token>'
{
  "channel_preferences": [
    {
      "channel": "androidpush",
      "is_restricted": false
    },
    {
      "channel": "email",
      "is_restricted": false
    }
  ]
}

Authorizations

Authorization
string
header
required

Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.

Path Parameters

distinct_id
string
required

distinct_id of the user whose preferences should be fetched

Query Parameters

tenant_id
string

to fetch user preferences for a particular tenant

Response

200
application/json
200
channel_preferences
object[]