List notification categories
GET
/v1/preferences/categories
const url = 'https://your-notavia-host/v1/preferences/categories?include_archived=false';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://your-notavia-host/v1/preferences/categories?include_archived=false' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” include_archived
boolean
Responses
Section titled “ Responses ”Categories list.
Media type application/json
object
data
Array<object>
object
id
string format: uuid
key
string
name
string
description
string
is_critical
boolean
default_channels
Array<string>
default_opt_in
boolean
is_archived
boolean
Example
{ "data": [ { "default_channels": [ "email" ] } ]}Missing or invalid credentials.
Media type application/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}Credentials do not have the required scope.
Media type application/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}