notifications

Get notification preferences

Changed on

Get notification preferences for the current user. Returns all available types with their enabled status. New users have all types enabled by default. New notification types added in the future are automatically enabled for all users.

get/api/notifications/preferences

Request

  • Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.corabea.it/api/notifications/preferences
  • Auth: HTTP bearer

Response

Successful Response

titlestring nullable

Success title (set only after an update)

enabled_typesobject nullable

Map of notification types to enabled status. Null means all enabled.

Example response

{
  "enabled_types": {
    "booking": true,
    "chat": true,
    "daily_evening": true,
    "daily_morning": false,
    "event": true,
    "general": true,
    "payment": false,
    "subscription": true
  },
  "types": [
    {
      "enabled": true,
      "type": "chat"
    },
    {
      "enabled": true,
      "type": "booking"
    },
    {
      "enabled": false,
      "type": "payment"
    }
  ]
}

Changes

    • warning

      added the new community enum value to the // response property for the response status

    • warning

      added the new clinical_document enum value to the // response property for the response status