检索 thread
GET
/v1/threads/retrieve您可以通过此项操作检索一个已创建的thread。
请求参数
Query 参数
GroupId
string
必需
示例值:
${GroupId}
Header 参数
Authorization
string
必需
示例值:
Bearer ${API_KEY}
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
thread_id
string
必需
示例
{
"thread_id": "$Thread_Id"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
id
string
必需
object
string
对象:thread
created_at
integer
必需
metadata
object
thread元信息
key1
string
必需
key2
string
必需
base_resp
object
必需
status_code+status_message
status_code
integer
必需
status_msg
string
必需
示例
{
"id": "thread_abc123",
"object": "thread",
"created_at": 1703230125,
"metadata": {
"key1": "value1",
"key2": "value2"
},
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}
修改于 9 个月前