GET
/
conversations
/
{conversation_id}
/
variables
{
  "limit": 123,
  "has_more": true,
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "value_type": "<string>",
      "value": "<string>",
      "description": "<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 放在后端存储,而非客户端,以免泄露。

Path Parameters

conversation_id
string
required

会话 ID。

Query Parameters

user
string
required

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

last_id
string | null

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

limit
integer
default:20

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

Required range: 1 <= x <= 100
variable_name
string

(选填)按变量名称筛选。

Response

200
application/json

成功获取对话变量。

The response is of type object.