Read your notification preferences
GET
/katara/v1/notifications/preferences
const url = 'https://api.katara.com/katara/v1/notifications/preferences';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.katara.com/katara/v1/notifications/preferences \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”org_id
string format: uuid
environment_id
string format: uuid
Header Parameters
Section titled “Header Parameters”X-Katara-Account-ID
string format: uuid
Optional for reads after sign-in. Use the UUID of the account that loaded the application. A different current cookie account returns account_changed before the handler runs. Session bearer and API key clients do not require this header.
Responses
Section titled “Responses”Current notification state.
Media typeapplication/json
object
data
required
Array<object>
object
org_id
string format: uuid
environment_id
string format: uuid
product
required
string
category
required
string
channel
required
string
enabled
required
boolean
time_zone
required
string
quiet_start
integer
quiet_end
integer
digest
required
string
snoozed_until
string format: date-time
version
required
integer
Example
{ "data": [ { "product": "account", "category": "security", "channel": "in_app", "digest": "immediate" } ]}Invalid request.
A current human session or permission is required.
Item or source access is unavailable.
The state version changed; reload before editing.