Get user preferred email channels
This endpoint is used to get the user's preferred notification channels. The notification channels are used to notify the user about user-specific events such user inactivity, completed offers, etc.
Body Required
GET /v1/client/user/notifications
curl \
-X GET https://api.bitlabs.ai/v1/client/user/notifications \
-H "X-Api-Token: $API_KEY" \
-H "X-User-Id: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_channels":[{"channel_id":"string","enabled":true}]}'
Request examples
{
"user_channels": [
{
"channel_id": "string",
"enabled": true
}
]
}
Response examples (200)
{
"data": {}
}
Response examples (406)
{
"error": {
"details": {
"msg": "vpn detected",
"http": "406 Not Acceptable"
}
}
}