API reference

Notifications

Read and mark the workspace's notifications.

  1. GET/v1/notifications
  2. POST/v1/notifications/read
GET/v1/notifications

The notification feed

Composed on read from live state rather than stored, so an item disappears when the thing it describes is fixed. Mixes what is currently wrong (compliance alerts) with what recently happened (scans, publishes, people joining), newest first.

Needs: A signed-in panel session, sent as Authorization: Bearer <access token>.

Parameters
NameWhereTypeWhat it is
limitquerynumberHow many rows to return. unread and total are still counted across the whole feed, so a small limit does not lie about the badge.
Responses
StatusBodyWhen
200NotificationsFeedDto
200 body · NotificationsFeedDto
FieldTypeWhat it is
items requiredNotificationItemDto[]
items[].id requiredstringStable while the underlying condition holds.
items[].kind required"compliance_finding" | "domain_unverified" | "scan_failed" | "no_traffic" | "scan_completed" | "banner_published" | "domain_added" | "member_joined"
items[].severity required"critical" | "warning" | "info"
items[].title requiredstring
items[].detail requiredstring
items[].at requiredstringISO-8601.
items[].domainIdstring | null
items[].hostnamestring | null
items[].read requiredboolean
items[].emailNotificationIdstring | nullThe notification-catalogue id that emails this same event, so a client can link the row straight to the switch that controls it. Null when the row has no email behind it at all — which is not the same as an email being off.
unread requirednumberUnread across the WHOLE feed, not just the items returned. The badge would otherwise stop counting at whatever limit the caller happened to pass.
total requirednumberTotal before limit was applied.
readAtstring | nullWhen this user last marked the feed read. Null if never.
POST/v1/notifications/read

Mark everything up to now as read

Needs: A signed-in panel session, sent as Authorization: Bearer <access token>.

Responses
StatusBodyWhen
200MarkReadResultDto
200 body · MarkReadResultDto
FieldTypeWhat it is
readAt requiredstring

Next groupSearch