Skip to main content

Notifications

Generated from apiome-rest/openapi.yaml (API version 1.204.1) — 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.

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" or nullnoOnly this event type.
limitqueryintegernoPage size.
offsetqueryintegernoNotifications to skip.
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.
totalintegeryesHow many match the filters in all.
limitintegeryesThe page size used.
offsetintegeryesThe offset used.

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.