NATSorganization.invitation.list列出组织邀请
Try it 面板需要启用 JavaScript。
分页返回组织邀请记录,支持状态过滤。
Request Payload
消息格式:JSON
| Name | Data Type | Required | Description |
|---|---|---|---|
| orgId | string | Yes | 组织 ID |
| status | string | No | pending / accepted / expired |
| page | number | No | 页码,默认 1 |
| pageSize | number | No | 每页数量,默认 20,上限 100 |
type RequestBody = {
/** 组织 ID */
orgId: string
/** pending / accepted / expired */
status?: string
/** 页码,默认 1 */
page?: number
/** 每页数量,默认 20,上限 100 */
pageSize?: number
}{
"orgId": "01JD8SRP1N4T8W6XQ5V9XDL2Y7K",
"status": "pending",
"page": 1,
"pageSize": 20
}Response Payload
回复使用统一信封 {id, code, messages, result},其 result:
| Name | Data Type | Required | Description |
|---|---|---|---|
| items | array | Yes | 邀请列表 |
| total | number | Yes | 总数 |
| page | number | Yes | 当前页码 |
| pageSize | number | Yes | 每页数量 |
type ResponseBody = {
/** 邀请列表 */
items: Record<string, unknown>[]
/** 总数 */
total: number
/** 当前页码 */
page: number
/** 每页数量 */
pageSize: number
}{
"items": [
{
"invitationId": "01JD8SRT5N8X2Z0BU9Y3BHK6C1O",
"channel": "email",
"target": "liu.yang@example.com",
"status": "pending",
"createdAt": "2026-10-14T13:00:00Z",
"expiresAt": "2026-10-17T13:00:00Z"
}
],
"total": 1,
"page": 1,
"pageSize": 20
}Response Code
回复使用统一信封 {id, code, messages, result},其 code 字段:
| code | Meaning | Notes |
|---|---|---|
| 0 | 成功 | 列出组织邀请 |
Examples
{ "orgId": "01JD8SRP1N4T8W6XQ5V9XDL2Y7K", "status": "pending", "page": 1, "pageSize": 20 }
{
"id": "01JD8SW6KV4X1YU",
"code": 0,
"messages": [],
"result": {
"items": [
{
"invitationId": "01JD8SRT5N8X2Z0BU9Y3BHK6C1O",
"channel": "email",
"target": "liu.yang@example.com",
"status": "pending",
"createdAt": "2026-10-14T13:00:00Z",
"expiresAt": "2026-10-17T13:00:00Z"
}
],
"total": 1,
"page": 1,
"pageSize": 20
}
}