Skip to content
中文

Mark all your unread bell messages read

Code Mode: praxis.organization.notifications.messages.readAll

HTTP: POST /organization/v1/notifications/messages:readAll

Mark every unread, unarchived bell message of the calling person in this organization as read, and tell the notifications still waiting on them. Nothing of anyone else’s is touched. Returns how many messages changed; 0 when there was nothing unread. No usage charge.

Signature

praxis.organization.notifications.messages.readAll(args?:Record<string,never>):Promise<{/** The number of messages that were unread and are now read. */ updated:number}>;

Responses

StatusContent typesDescription
200application/jsonHow many messages were marked read.
401Missing or invalid credential (RFC 9457 problem).
403`PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
502The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.