SnozeDevelopers
API referenceNotifications

Archive notifications out of the inbox

Stamps `archivedAt` on the caller's notifications — the ids given, or with `allRead` every already-read, unarchived one — so they drop out of the default listing, and appends an archive event to the workspace log. A body with neither ids nor `allRead` is a validation error. Restricting to a `workspaceId` requires `workspace:read` there and accepts an `Idempotency-Key` header to make retries safe.

POST
/v1/notifications/archive

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
allRead?boolean|null

Response Body

Success

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