List your bell messages
Code Mode: praxis.organization.notifications.messages.list
HTTP: GET /organization/v1/notifications/messages
The calling person’s bell messages in this organization, newest first: the inbox tab by default, or the archive tab with archived=1. The person is always the credential’s own; the request cannot name another member. Pass nextPageToken unchanged as page for the next page; it is absent on the last one. Read-only; no usage charge.
签名
praxis.organization.notifications.messages.list(args?:{query?:{/** e.g. "0" */ archived?:"0"|"1";limit?:number;page?:string}}):Promise<{/** The page, newest first. */ items:Array<{/** The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations. e.g. "subscribers/usr_8a21c4/messages/msg_3f9a1c7e" */ name:string;/** The organization the message belongs to; empty for a message that belongs to no organization. */ organizationId:string;/** The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable. e.g. "agent" */ group:"members"|"usage"|"alerts"|"agent"|"nonConfigurable";/** The notification workflow that wrote it, as the preferences page names it. */ workflow:string;/** The message's headline, as the bell shows it. */ title:string;/** The message text. */ body:string;/** Where the bell opens this message; absent when it has no page. */ actionUrl?:string;/** Whether the bell has been opened since the message arrived. */ seen:boolean;/** Whether this person has read it. */ read:boolean;/** Whether this person archived it; archived messages are not in the inbox tab. */ archived:boolean;/** When the message arrived. */ createTime:string}>;/** Pass unchanged as page for the next page; absent at the end. */ nextPageToken?:string}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| archived | query | “0” | “1” | 否 | 0 (the default) lists the inbox tab, 1 lists archived messages. |
| limit | query | number | 否 | Messages per page, 1 to 100; defaults to 20. |
| page | query | string | 否 | Opaque nextPageToken from the previous response; omit for the first page. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | One page of this person’s messages. |
| 400 | A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem). | |
| 401 | Missing or invalid credential (RFC 9457 problem). | |
| 403 | `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (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. |