List notification targets
const url = 'https://example.com/api/v1/notification-targets';const options = {method: 'GET'};
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://example.com/api/v1/notification-targetsLists every notification target, by name, each URL masked to its scheme and host. An all-scope directory: gated by notification_target:read with an all-scope grant (admin), and off the viewer floor, since a target is an egress destination holding a credential.
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
Where a notification goes, a webhook, a mailbox, a user group or a person.
object
A URL to the JSON Schema for this object.
An email target’s recipients: a shared mailbox, sent through the install’s mail relay
How a send proves itself: hmac signs each body with the bound hmac-key (X-Omniglass-Signature), bearer presents the bound bearer-token, none sends unsigned
The channels a group or person target delivers on: inbox (the console inbox) and email (each person’s directory email)
Whether deliveries go to it; a disabled target is skipped
The target’s uuid, the stable form of name
The target kind: webhook posts a signed JSON envelope to the URL; email sends to fixed addresses through the install’s mail relay; user_group reaches every person in a group, read at each alarm transition; user reaches one person; role reaches every person holding the role, directly or through a group grant, read at each alarm transition. A person is told only about alarms on components they can read
Shipped with Omniglass by the boot seed: only its label and enabled switch are the operator’s, and it cannot be deleted
The role a role target reaches the holders of, by name; shown to a caller who reads roles (role:read:admin, all-scope)
The role’s uuid
The platform secret the send signs (an hmac-key) or authenticates (a bearer-token) with, by name; absent sends unsigned
The bound secret’s uuid, the stable form of secret
A webhook’s destination, masked to its scheme and host (the path and query often carry a credential); :reveal returns it whole
The person a user target reaches, by username; shown to a caller who reads the user directory (user:read:admin, all-scope)
The group a user_group target reaches, by name; shown to a caller who reads the group directory (user_group:read:admin, all-scope)
The group’s uuid
The person’s uuid
Example
{ "$schema": "/api/v1/schemas/ListNotificationTargetsOutputBody.json", "notification_targets": [ { "$schema": "/api/v1/schemas/NotificationTargetBody.json", "auth": "none", "kind": "webhook" } ]}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{ "$schema": "/api/v1/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "about:blank"}