TypeScript
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": {} }
Get user’s notification preferences
Session-based authentication via HTTP-only cookie
Notification settings
true
User notification settings
Show child attributes
Was this page helpful?