OPNexusdocs

API: notifications

GET /api/notifications/channels#

List Channels

Permission notifications.read (look)

Response 200 NotificationChannelRead[]

Show 8 fields
FieldTypeNotes
channel_type *"ntfy" | "gotify" | "telegram" | "teams" | "matrix"
config *map<string, any>
created_at *string (date-time)
enabled *boolean
id *string (uuid)
name *string
secret_set *boolean
updated_at *string (date-time)

POST /api/notifications/channels#

Create Channel

Permission settings.write (administer)

Request body NotificationChannelCreate

Show 5 fields
FieldTypeNotes
channel_type *"ntfy" | "gotify" | "telegram" | "teams" | "matrix"
configmap<string, any>
enabledboolean default: true
name *stringminLength 1, maxLength 100
secretstring | null

Response 201 NotificationChannelRead

Show 8 fields
FieldTypeNotes
channel_type *"ntfy" | "gotify" | "telegram" | "teams" | "matrix"
config *map<string, any>
created_at *string (date-time)
enabled *boolean
id *string (uuid)
name *string
secret_set *boolean
updated_at *string (date-time)

PUT /api/notifications/channels/{channel_id}#

Update Channel

Permission settings.write (administer)

Parameters

channel_id *pathstring (uuid)

Request body NotificationChannelUpdate

Show 6 fields
FieldTypeNotes
clear_secretboolean default: false
configmap<string, any> | null
enabledboolean | null
expected_updated_atstring (date-time) | null
namestring | null
secretstring | null

Response 200 NotificationChannelRead

Show 8 fields
FieldTypeNotes
channel_type *"ntfy" | "gotify" | "telegram" | "teams" | "matrix"
config *map<string, any>
created_at *string (date-time)
enabled *boolean
id *string (uuid)
name *string
secret_set *boolean
updated_at *string (date-time)

DELETE /api/notifications/channels/{channel_id}#

Delete Channel

Permission settings.write (administer)

Parameters

channel_id *pathstring (uuid)

Response 204

POST /api/notifications/channels/{channel_id}/test#

Test Channel

Permission settings.write (administer)

Parameters

channel_id *pathstring (uuid)

Response 200

GET /api/notifications/problems#

List Problems

Permission notifications.read (look)

Parameters

include_resolvedqueryboolean
limitqueryinteger

Response 200 NotificationProblemRead[]

Show 9 fields
FieldTypeNotes
context *map<string, any>
first_detected_at *string (date-time)
id *string (uuid)
last_notified_at *string (date-time) | null
last_seen_at *string (date-time)
problem_type *"host_offline" | "cert_expiry" | "rule_drift" | "revert_failed" | "maintenance_unknown" | "carp_split_brain" | "nat_drift" | "carp_auto_revert_failed" | "network_drift" | "scheduled_maintenance_failed" | "backup_stale" | "backup_offsite_failed" | "compliance_finding" | "gateway_down" | "resource_threshold" | "service_down" | "api_rights_missing" | "server_disk" | "rollout_paused" | "rollout_start_failed" | "ha_standby_down" | "ha_replication_lag" | "ha_slot_retention" | "ha_sync_stale" | "ha_split_brain" | "ha_agent_down"
resolved_at *string (date-time) | null
resolved_notified_at *string (date-time) | null
status *"open" | "resolved"

GET /api/notifications/settings#

Read Settings

Permission notifications.read (look)

Response 200 NotificationSettingsRead

Show 44 fields
FieldTypeNotes
alert_confirm_samplesinteger default: 3
api_rights_enabledboolean default: true
backup_failed_enabledboolean default: true
carp_auto_revert_failed_enabled *boolean
carp_health_enabled *boolean
cert_expiring_enabled *boolean
compliance_alerts_enabledboolean default: false
disk_threshold_pctinteger default: 90
email_enabled *boolean
gateway_alert_mutedstring[]
gateway_delay_threshold_msinteger default: 500
gateway_down_enabledboolean default: true
gateway_loss_threshold_pctinteger default: 20
ha_alerts_enabledboolean default: true
host_offline_enabled *boolean
language"auto" | "de" | "en" default: "auto"
load_per_cpu_thresholdnumber default: 2
maintenance_unknown_enabled *boolean
memory_threshold_pctinteger default: 95
nat_drift_enabled *boolean
network_drift_enabledboolean default: true
poll_interval_seconds *integer
resource_confirm_samplesinteger default: 5
resource_threshold_enabledboolean default: false
revert_failed_enabled *boolean
rollout_problems_enabledboolean default: true
rule_drift_enabled *boolean
scheduled_maintenance_failed_enabledboolean default: true
server_disk_enabledboolean default: true
server_disk_threshold_pctinteger default: 90
service_down_enabledboolean default: false
service_watchliststring[]
smtp_from_address *string | null
smtp_host *string | null
smtp_password_set *boolean
smtp_port *integer
smtp_security *"none" | "starttls" | "ssl"
smtp_to_addresses *string[]
smtp_username *string | null
swap_threshold_pctinteger default: 50
updated_at *string (date-time)
webhook_enabled *boolean
webhook_signing_secret_set *boolean
webhook_url *string | null

PUT /api/notifications/settings#

Update Settings

Permission settings.write (administer)

Request body NotificationSettingsUpdate

Show 44 fields
FieldTypeNotes
alert_confirm_samplesinteger | null
api_rights_enabledboolean | null
backup_failed_enabledboolean | null
carp_auto_revert_failed_enabledboolean | null
carp_health_enabledboolean | null
cert_expiring_enabledboolean | null
clear_smtp_passwordboolean default: false
clear_webhook_signing_secretboolean default: false
compliance_alerts_enabledboolean | null
disk_threshold_pctinteger | null
email_enabledboolean | null
gateway_delay_threshold_msinteger | null
gateway_down_enabledboolean | null
gateway_loss_threshold_pctinteger | null
ha_alerts_enabledboolean | null
host_offline_enabledboolean | null
language"auto" | "de" | "en" | null
load_per_cpu_thresholdnumber | null
maintenance_unknown_enabledboolean | null
memory_threshold_pctinteger | null
nat_drift_enabledboolean | null
network_drift_enabledboolean | null
poll_interval_secondsinteger | null
resource_confirm_samplesinteger | null
resource_threshold_enabledboolean | null
revert_failed_enabledboolean | null
rollout_problems_enabledboolean | null
rule_drift_enabledboolean | null
scheduled_maintenance_failed_enabledboolean | null
server_disk_enabledboolean | null
server_disk_threshold_pctinteger | null
service_down_enabledboolean | null
service_watchliststring[] | null
smtp_from_addressstring | null
smtp_hoststring | null
smtp_passwordstring | null
smtp_portinteger | null
smtp_security"none" | "starttls" | "ssl" | null
smtp_to_addressesstring[] | null
smtp_usernamestring | null
swap_threshold_pctinteger | null
webhook_enabledboolean | null
webhook_signing_secretstring | null
webhook_urlstring | null

Response 200 NotificationSettingsRead

Show 44 fields
FieldTypeNotes
alert_confirm_samplesinteger default: 3
api_rights_enabledboolean default: true
backup_failed_enabledboolean default: true
carp_auto_revert_failed_enabled *boolean
carp_health_enabled *boolean
cert_expiring_enabled *boolean
compliance_alerts_enabledboolean default: false
disk_threshold_pctinteger default: 90
email_enabled *boolean
gateway_alert_mutedstring[]
gateway_delay_threshold_msinteger default: 500
gateway_down_enabledboolean default: true
gateway_loss_threshold_pctinteger default: 20
ha_alerts_enabledboolean default: true
host_offline_enabled *boolean
language"auto" | "de" | "en" default: "auto"
load_per_cpu_thresholdnumber default: 2
maintenance_unknown_enabled *boolean
memory_threshold_pctinteger default: 95
nat_drift_enabled *boolean
network_drift_enabledboolean default: true
poll_interval_seconds *integer
resource_confirm_samplesinteger default: 5
resource_threshold_enabledboolean default: false
revert_failed_enabled *boolean
rollout_problems_enabledboolean default: true
rule_drift_enabled *boolean
scheduled_maintenance_failed_enabledboolean default: true
server_disk_enabledboolean default: true
server_disk_threshold_pctinteger default: 90
service_down_enabledboolean default: false
service_watchliststring[]
smtp_from_address *string | null
smtp_host *string | null
smtp_password_set *boolean
smtp_port *integer
smtp_security *"none" | "starttls" | "ssl"
smtp_to_addresses *string[]
smtp_username *string | null
swap_threshold_pctinteger default: 50
updated_at *string (date-time)
webhook_enabled *boolean
webhook_signing_secret_set *boolean
webhook_url *string | null

POST /api/notifications/test#

Test Notification

Permission settings.write (administer)

Request body TestNotificationRequest

Show 1 fields
FieldTypeNotes
channel *"webhook" | "email"

Response 200