SnozeDevelopers
API referenceNotifications

Mark notifications read in a workspace

Stamps `readAt` on the caller's unread notifications in this workspace — the ids in `notificationId` or `notificationIds`, or with `all` every unread one — and appends a read event to the workspace log. Requires `workspace:read` in that workspace; a body with neither ids nor `all` is a validation error, and a single id that matches nothing readable is not found. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

POST
/v1/workspaces/{workspaceId}/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.

Path Parameters

workspaceId*string

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/workspaces/string/notifications/read' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "notificationIds": [      "string"    ],    "readAt": "string"  }}