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.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object
      Hide data attribute Show data attribute object
      • user_channels array[object] Required
        Hide user_channels attributes Show user_channels attributes object
        • channel_id string Required
        • enabled boolean Required
  • 406 application/json

    VPN detected

    Hide response attribute Show response attribute object
    • data object
GET /v1/client/user/notifications
curl \
 --request GET 'https://api.bitlabs.ai/v1/client/user/notifications' \
 --header "X-Api-Token: $API_KEY" \
 --header "X-User-Id: $API_KEY"
Response examples (200)
{
  "data": {
    "user_channels": [
      {
        "channel_id": "string",
        "enabled": true
      }
    ]
  }
}
Response examples (406)
{
  "error": {
    "details": {
      "msg": "vpn detected",
      "http": "406 Not Acceptable"
    }
  }
}