Get user preferred email channels

GET /v1/client/user/notifications

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.

application/json

Body Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
  • 406 application/json

    VPN detected

    Hide response attribute Show response attribute object
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"
    }
  }
}