Skip to main content
GET
/
v1
/
regions
/
global
/
notifications
/
settings
Get notification settings
const options = {method: 'GET', headers: {cookie: 'session='}};

fetch('https://api.example.com/v1/regions/global/notifications/settings', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "channels": {
      "inApp": {
        "enabled": true
      },
      "email": {
        "enabled": true,
        "address": "jsmith@example.com",
        "digestFrequency": "realtime"
      },
      "slack": {
        "enabled": true,
        "webhookUrl": "<string>",
        "channel": "<string>"
      }
    },
    "subscriptions": {}
  },
  "meta": {}
}

Authorizations

session
string
cookie
required

Session-based authentication via HTTP-only cookie

Response

200 - application/json

Notification settings

success
enum<boolean>
Available options:
true
data
object

User notification settings

meta
object