Flambe docs
API referenceNotifications

Mark all notifications read

Pass `before` to only clear notifications older than that instant, which avoids swallowing something that arrived while the user was reading.

POST
/api/notifications/mark-all-read

Pass before to only clear notifications older than that instant, which avoids swallowing something that arrived while the user was reading.

Authorization

bearerAuth
AuthorizationBearer <token>

A Clerk session JWT. Obtain one with a Clerk frontend SDK (session.getToken()) or, for server-to-server use, with a Clerk machine token. The token's sub claim is the Flambe user id that scopes every request.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/notifications/mark-all-read" \  -H "Content-Type: application/json" \  -d '{}'
{  "updated": 0}