# 列出本访客会话

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

仅列本访客绑定的active Web应用会话，不接受管理侧status=all语义。下一页offset加实际items条数，空页或达到total停止；跨页不保证固定快照。


```http
GET https://api.moi.matrixorigin.cn/v5/public/webapp/conversations
```

## 调用前准备

`BASE_URL` 使用产品 API 前缀 `https://api.moi.matrixorigin.cn/v5`；专有部署填写对应的产品 API 地址。

[准备同环境链接和访客身份](identity-lifecycle.md#prepare)。不填产品PAT或工作区请求头。

## 请求

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} 输入示例

```bash
curl --request GET \
  "$BASE_URL/public/webapp/conversations?webapp=$AGENT_ID&t=$WEBAPP_TOKEN&s=$WEBAPP_SESSION&limit=50&offset=0"
```

:::::
:::::{tab-item} 参数说明

| 参数 | 位置 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- | --- |
| `webapp` | 查询 | string | 是 | 链接对应的智能体ID。 |
| `t` | 查询 | string | 是 | 当前有效发布token；短码链接先resolve，再用短码作为t。 |
| `s` | 查询 | string | 是 | 同一发布下的访客session凭据。 |
| `limit` | 查询 | integer | 否 | 默认50，最大200；非法或非正值退默认。 |
| `offset` | 查询 | integer | 否 | 默认0；负数按0。 |

:::::
::::::
:::::::

## 成功响应

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} 响应示例

```json
{
  "code": 0,
  "data": {
    "items": [
      {
        "conversation_id": "conversation-example",
        "title": "问题记录",
        "updated_at": "2026-11-12T01:00:00Z"
      }
    ],
    "total": 1,
    "limit": 50,
    "offset": 0
  }
}
```

:::::
:::::{tab-item} 字段说明

成功 HTTP 200；数值 code=0。data 的[对象说明](objects.md)与示例配合阅读；创建会话示例仅为字段摘录。

:::::
::::::
:::::::

## 错误响应

[公开错误与身份处理](identity-lifecycle.md#errors)区分链接不可用、停用、session失效、参数和系统故障。

## 下一页

第一页有一条且total尚未达到时，下例使用offset=1；实际按已返回条数推进。

```bash
curl --request GET \
  "$BASE_URL/public/webapp/conversations?webapp=$AGENT_ID&t=$WEBAPP_TOKEN&s=$WEBAPP_SESSION&limit=50&offset=1"
```
