Skip to main content

Notifications

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: notifications · 3 operations

GET /v1/tenants/{tenant_slug}/notifications​

List the caller's notifications

A page of the caller's own inbox in this tenant, newest first. Each row carries the event's type, the payload its sentence and deep link need, who caused it, and the project and version it points at.

Filters combine: unread (only what has not been read) and type.

Pages by cursor: pass the previous page's next_cursor until has_more is false. The total is counted only when include_total is set.

Reading the list never marks anything read. Requires only authentication — an inbox is the caller's own, so there is no permission to grant.

Operation id: list_notifications_v1_tenants__tenant_slug__notifications_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
unreadquerybooleannoOnly unread notifications.
typequeryenum "mention", "review_requested", "review_decision", "thread_resolved", "version_published", "export_auto_halted", … or nullnoOnly this event type.
limitqueryintegernoPage size. At most 200.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
include_totalquerybooleannoAlso count the matching rows. Off by default because counting reads every match; the count stops at 10,000.
offsetqueryintegernoRows to skip. Deprecated: page with cursor instead. At most 10,000.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list the caller's notifications.application/json NotificationListResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/notifications/read​

Mark the caller's notifications read

Mark the notifications named by ids read, or the caller's whole inbox with {"all": true}. Marking is idempotent: a notification that was already read is not counted again, and an id that is not the caller's own simply matches nothing.

Answers with how many rows changed and the unread count that follows, so a client can update its badge without a second call.

Requires only authentication.

Operation id: mark_notifications_read_v1_tenants__tenant_slug__notifications_read_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (optional)

Request body for mark the caller's notifications read.

Responses

StatusDescriptionBody
200Successful response for mark the caller's notifications read.application/json MarkReadResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/notifications/unread-count​

Count the caller's unread notifications

How many notifications the caller has not read in this tenant, in total and per type (every type is reported, zeroes included). This is the bell badge.

Requires only authentication.

Operation id: unread_notification_count_v1_tenants__tenant_slug__notifications_unread_count_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for count the caller's unread notifications.application/json UnreadCount
422Validation Errorapplication/json HTTPValidationError

Schemas used​

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

MarkReadRequest​

Mark some — or all — of the caller's notifications read.

Attributes: ids: The notifications to mark. Ignored when all is set. all: Mark every unread notification of the caller in this tenant.

PropertyTypeRequiredDescription
idsarray of string or nullnoNotification ids to mark read.
allbooleannoMark the caller's whole inbox read instead.

MarkReadResponse​

What a mark-read call changed.

PropertyTypeRequiredDescription
updatedintegeryesHow many notifications went from unread to read.
unreadUnreadCountyesThe caller's unread count after the change.

NotificationListResponse​

A page of the caller's inbox.

PropertyTypeRequiredDescription
notificationsarray of NotificationRecordnoNotifications, newest first.
countintegeryesHow many notifications this page holds.
totalinteger or nullnoHow many match the filters, counted up to 10,000. Present only when the request set include_total.
limitintegeryesThe page size used.
offsetintegeryesThe offset used (deprecated; 0 when paging by cursor).
has_morebooleannoWhether another page exists.
next_cursorstring or nullnoPass as cursor to read the next page; null on the last page.

UnreadCount​

How much of the caller's inbox is unread — the bell badge (COL-3.2).

PropertyTypeRequiredDescription
totalintegeryesUnread notifications in this tenant.
by_typemap of integernoUnread count per type; every type is present, zeroes included.