Mark one of your letters read
Code Mode: praxis.organization.notifications.letters.read
HTTP: POST /organization/v1/notifications/letters/{id}:read
Mark one letter addressed to you as read, together with the bell notice it wrote, so the platform does not email it later as unread. The mailbox is the credential’s own — an agent credential reads its own agent mailbox, never its owner’s — and the request names only the letter. Repeating the call changes nothing and keeps the first read time. A letter that is not in your mailbox in this organization, or does not exist, answers 404 the same way. Returns how many delivered letters you still have unread. No usage charge.
签名
praxis.organization.notifications.letters.read(args:{path:{/** pattern: ^ltr_[0-9a-f]+$ e.g. "ltr_3f9a1c7e5b2d4a60" */ id:string}}):Promise<{/** How many delivered letters you have not read, across all pages. */ unread:number}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| id | path | string | 是 | The letter’s id, from the letters list. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The letter is read; your unread count after it. |
| 400 | The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem). | |
| 401 | Missing or invalid credential (RFC 9457 problem). | |
| 404 | No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem). | |
| 502 | The 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. |