SnozeDevelopers
API referenceNotifications

Mark inbox notifications read

The account-level twin of the workspace mark-read: stamps `readAt` on the caller's unread notifications across every workspace, or within one when `workspaceId` is given. A body with neither ids nor `all` is a validation error, and a single id that matches nothing readable is not found. Scoping to a `workspaceId` requires `workspace:read` there and accepts an `Idempotency-Key` header to make retries safe.

POST
/v1/notifications/read

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Query Parameters

workspaceId?string|null

Request Body

application/json
  1. body
notificationId?|null
notificationIds?array<>|null
all?boolean|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/notifications/read' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "notificationIds": [      "string"    ],    "readAt": "string"  }}