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

# 列出 Actor

> 返回分页的 Actor 列表

```
GET /openapi/memorylake/api/v3/actors
```

返回账户中所有 Actor 的分页列表。您可以按 Actor 类型筛选，或按显示名称搜索。

<Note>
  **所需权限：** `actor:list`
</Note>

### 查询参数

<ParamField query="page_size" type="integer" default="20">
  每页返回的 Actor 数量。
</ParamField>

<ParamField query="continuation_token" type="string">
  上一次调用返回的分页令牌。首次请求时省略此参数。
</ParamField>

<ParamField query="actor_type" type="string">
  按 Actor 类型筛选。取值为 `HUMAN` 或 `ASSISTANT`。
</ParamField>

<ParamField query="display_name_fuzzy" type="string">
  按显示名称模糊搜索。
</ParamField>

<RequestExample>
  ```bash First page theme={null}
  curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/actors?page_size=20' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```

  ```bash Filter by type theme={null}
  curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/actors?actor_type=HUMAN' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```

  ```bash Search by display name theme={null}
  curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/actors?display_name_fuzzy=Alice' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```

  ```bash Next page theme={null}
  curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/actors?page_size=20&continuation_token=eyJsYXN0X2lkIjoiYWN0LTk4NzY1NCJ9' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```
</RequestExample>

### 响应

<ResponseField name="data" type="object">
  <Expandable title="分页 Actor 列表">
    <ResponseField name="items" type="array">
      Actor 对象数组

      <Expandable title="Actor 对象">
        <ResponseField name="id" type="string">Actor ID</ResponseField>
        <ResponseField name="custom_id" type="string">调用方定义的外部标识符</ResponseField>
        <ResponseField name="actor_type" type="string">Actor 类型：`HUMAN` 或 `ASSISTANT`</ResponseField>
        <ResponseField name="display_name" type="string">人类可读的显示名称</ResponseField>
        <ResponseField name="description" type="string">Actor 描述</ResponseField>
        <ResponseField name="metadata" type="object">调用方定义的元数据（键值对）</ResponseField>
        <ResponseField name="created_at" type="string">创建时间戳</ResponseField>
        <ResponseField name="updated_at" type="string">最后更新时间戳</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="continuation_token" type="string">下一页的分页令牌。当为最后一页时，该值不存在或为 `null`。</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "data": {
      "items": [
        {
          "id": "act-a1b2c3d4e5f6",
          "custom_id": "user-ext-001",
          "actor_type": "HUMAN",
          "display_name": "Alice Chen",
          "description": "Primary end user for the mobile app",
          "metadata": {
            "tier": "premium",
            "region": "us-west"
          },
          "created_at": "2025-03-10T08:00:00Z",
          "updated_at": "2025-03-10T08:00:00Z"
        },
        {
          "id": "act-f6e5d4c3b2a1",
          "custom_id": "system-intake",
          "actor_type": "ASSISTANT",
          "display_name": "Intake Bot",
          "description": "Automated intake system for onboarding flows",
          "metadata": {},
          "created_at": "2025-03-12T14:30:00Z",
          "updated_at": "2025-03-12T14:30:00Z"
        }
      ],
      "continuation_token": "eyJsYXN0X2lkIjoiYWN0LWY2ZTVkNGMzYjJhMSJ9"
    }
  }
  ```
</ResponseExample>
