GET
/
conversations
{
  "limit": 123,
  "has_more": true,
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "inputs": {},
      "status": "<string>",
      "introduction": "<string>",
      "created_at": 123,
      "updated_at": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API-Key 鉴权。所有 API 请求都应在 Authorization HTTP Header 中包含您的 API-Key,格式为:Bearer {API_KEY}。强烈建议开发者把 API-Key 放在后端存储,而非客户端,以免泄露。

Query Parameters

user
string
required

用户标识,由开发者定义规则,需保证用户标识在应用内唯一。

last_id
string | null

(选填)当前页最后面一条记录的 ID,默认 null。

limit
integer
default:20

一次请求返回多少条记录,默认 20 条,最大 100 条,最小 1 条。

Required range: 1 <= x <= 100
sort_by
enum<string>
default:-updated_at

(选填)排序字段,默认 -updated_at (按更新时间倒序排列)。可选值:created_at, -created_at, updated_at, -updated_at。'-' 代表倒序。

Available options:
created_at,
-created_at,
updated_at,
-updated_at

Response

200 - application/json

成功获取会话列表。

The response is of type object.