> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memorylake.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 列出邀请

> 返回团队的邀请，最新的排在前面

```
GET /openapi/admin/api/v1/invitations
```

列出团队的邀请，最新的排在前面，可按状态筛选。

<Note>
  **所需权限：** `member:invite`
</Note>

### 查询参数

<ParamField query="page_size" type="integer" default="20">
  每页条数（1–100）
</ParamField>

<ParamField query="continuation_token" type="string">
  上一页返回的令牌
</ParamField>

<ParamField query="status" type="string">
  按状态筛选：`pending`、`accepted`、`rejected`、`expired` 或 `revoked`。待接受的邀请一旦链接过期，就会读作 `expired`。
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl 'https://app.memorylake.cn/openapi/admin/api/v1/invitations?status=pending' \
    -H 'Authorization: Bearer sk-admin-xxxxxx'
  ```
</RequestExample>

### 响应

<ResponseField name="data" type="object">
  <Expandable title="分页的邀请列表">
    <ResponseField name="items" type="array">
      [邀请对象](/features/management-api/invitations/create-invitation)
    </ResponseField>

    <ResponseField name="total" type="integer">匹配的邀请总数</ResponseField>
    <ResponseField name="continuation_token" type="string">存在下一页时返回</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "message": "Operation completed successfully",
    "data": {
      "items": [
        {
          "id": "88",
          "email": "bob@example.com",
          "role": "tenant_member",
          "status": "pending",
          "created_at": 1756300000,
          "expires_at": 1756904800,
          "last_invited_at": 1756300000
        }
      ],
      "total": 1
    }
  }
  ```
</ResponseExample>
