<span id="列出本访客会话"></span>

# List this visitor's conversations

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

Lists only active Web App conversations bound to this visitor, without administration-side status=all semantics. Increase offset by actual items returned. Stop on an empty page or at total. Pages do not guarantee a fixed snapshot.


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

<span id="调用前准备"></span>

## Before you call this API

Set `BASE_URL` to the product API prefix `https://api.moi.matrixorigin.cn/v5`; use the corresponding product API URL for a dedicated deployment.

[Prepare links and visitor identity in the same environment](identity-lifecycle.md#prepare). Do not supply a product PAT or workspace request headers.

<span id="请求"></span>

## Request

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Request example

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

:::::
:::::{tab-item} Parameters

| Parameter | Location | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `webapp` | Queries | string | Yes | Agent ID associated with the link. |
| `t` | Queries | string | Yes | Currently valid publication token. For short-code links, resolve first, then use the short code as t. |
| `s` | Queries | string | Yes | Visitor session credential for the same publication. |
| `limit` | Queries | integer | No | Default 50, maximum 200. Invalid/nonpositive values use the default. |
| `offset` | Queries | integer | No | Default 0; negative values use 0. |

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

<span id="成功响应"></span>

## Successful response

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

```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} Fields

Success returns HTTP 200 and numeric code=0. Read data's [object descriptions](objects.md) alongside the example. The conversation creation example is only a field excerpt.

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

<span id="错误响应"></span>

## Error responses

[Public errors and identity handling](identity-lifecycle.md#errors) distinguishes unavailable/disabled links, invalid sessions, parameters, and system failures.

<span id="下一页"></span>

## Next page

When the first page has one item and total is not reached, the example uses offset=1. Advance by the actual returned count.

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