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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
unread | query | boolean | no | Only unread notifications. |
type | query | enum "mention", "review_requested", "review_decision", "thread_resolved", "version_published", "export_auto_halted", … or null | no | Only this event type. |
limit | query | integer | no | Page size. At most 200. |
cursor | query | string or null | no | Opaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page. |
include_total | query | boolean | no | Also count the matching rows. Off by default because counting reads every match; the count stops at 10,000. |
offset | query | integer | no | Rows to skip. Deprecated: page with cursor instead. At most 10,000. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the caller's notifications. | application/json NotificationListResponse |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (optional)
Request body for mark the caller's notifications read.
application/json—MarkReadRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for mark the caller's notifications read. | application/json MarkReadResponse |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for count the caller's unread notifications. | application/json UnreadCount |
| 422 | Validation Error | application/json HTTPValidationError |
Schemas used
HTTPValidationError
Validation error response emitted when request data fails schema checks.
| Property | Type | Required | Description |
|---|---|---|---|
detail | array of ValidationError | no | Detail. |
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.
| Property | Type | Required | Description |
|---|---|---|---|
ids | array of string or null | no | Notification ids to mark read. |
all | boolean | no | Mark the caller's whole inbox read instead. |
MarkReadResponse
What a mark-read call changed.
| Property | Type | Required | Description |
|---|---|---|---|
updated | integer | yes | How many notifications went from unread to read. |
unread | UnreadCount | yes | The caller's unread count after the change. |
NotificationListResponse
A page of the caller's inbox.
| Property | Type | Required | Description |
|---|---|---|---|
notifications | array of NotificationRecord | no | Notifications, newest first. |
count | integer | yes | How many notifications this page holds. |
total | integer or null | no | How many match the filters, counted up to 10,000. Present only when the request set include_total. |
limit | integer | yes | The page size used. |
offset | integer | yes | The offset used (deprecated; 0 when paging by cursor). |
has_more | boolean | no | Whether another page exists. |
next_cursor | string or null | no | Pass 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).
| Property | Type | Required | Description |
|---|---|---|---|
total | integer | yes | Unread notifications in this tenant. |
by_type | map of integer | no | Unread count per type; every type is present, zeroes included. |