iotoms Docs

Get notification preferences

GET
/api/v1/notifications/preferences

Returns the signed-in user's on or off setting for each notification category, with defaults filled in.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Response Body

OK

*/*
  1. response
status*string

Outcome of the call: SUCCESS when the request worked, ERROR when it did not.

message*string

Short human-readable message describing the result, for logs or display; do not parse it.

data?

The signed-in user's effective setting for every notification category.

Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/notifications/preferences'
Example Response
{  "status": "string",  "message": "string",  "data": {    "preferences": [      {        "category": "OPS_ROUTE_ASSIGNED",        "group": "OPS",        "enabled": true,        "canDisable": true      }    ]  }}