コンテンツにスキップ

list_held_notifications

GET
/api/v1/held-notifications
curl --request GET \
--url https://example.com/api/v1/held-notifications \
--header 'Authorization: Bearer <token>'

Notifications held until their node’s delivery hours open, oldest first

Media typeapplication/json
Array<object>

One notification held because its node is outside its delivery hours.

object
check
required

The alert’s check id - with node_id, what an active-alert row is matched by.

string format: uuid
event
required

What the notifier was handed when it held a notification.

string
Allowed values: fire resolve suppress
held_at
required
string format: date-time
metric
required
string
node_id

The node the alert is about.

string | null format: uuid
release_at

When the node’s hours were next due to open, as computed when it was held. A schedule edited since moves the real release without moving this.

string | null format: date-time
severity
required

How serious an alert is. Variants are declared low → high so the derived Ord ranks Unreachable above Critical above Warning above Info.

🚨 A new variant goes at the end only if it is the new top. The order is the ranking, the OpenAPI enum lists the variants in this order, and the WebUI’s SEVERITIES array mirrors it.

string
Allowed values: info warning critical unreachable
Example
[
{
"event": "fire",
"severity": "info"
}
]

No valid bearer token

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Role lacks the View permission

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

This core has no write side (skeleton mode)

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}