GET /openapi/memorylake/api/v3/conversations/{conversationId}/messages
continuation_token 可翻阅完整的历史记录。
所需权限:
workspace:conv_read路径参数
string
required
会话标识符
查询参数
integer
default:"20"
每页返回的消息数量
string
上一次响应返回的分页令牌,用于获取下一页结果
curl -X GET 'https://app.memorylake.cn/openapi/memorylake/api/v3/conversations/conv-4f42addb6cb69d6ee7de2451cb590e06/messages?page_size=50' \
-H 'Authorization: Bearer sk_xxxxxx'
响应
object
Show 分页消息列表
Show 分页消息列表
array
string|null
用于获取下一页的分页令牌。当没有更多结果时为
null。{
"success": true,
"data": {
"items": [
{
"id": "msg_1a2b3c4d5e6f7a8b",
"content": [
{
"block_type": "TEXT",
"text": "Hi, I'd like to learn more about your enterprise plan."
}
],
"metadata": {},
"timestamp": "2025-06-01T14:05:00Z",
"conversation_id": "conv-4f42addb6cb69d6ee7de2451cb590e06",
"sequence_no": 1,
"actor_id": "actor-93688d5ec8d2e98701be3d5554cbc455",
"created_at": "2025-06-01T14:05:12Z"
},
{
"id": "msg_9e4b2c3d5f6a7b8c",
"content": [
{
"block_type": "TEXT",
"text": "Of course! Our enterprise plan includes dedicated support, custom integrations, and advanced analytics. Would you like me to walk you through the details?"
}
],
"metadata": {},
"timestamp": "2025-06-01T14:05:30Z",
"conversation_id": "conv-4f42addb6cb69d6ee7de2451cb590e06",
"sequence_no": 2,
"actor_id": "actor-9831773f1353358f4196b22505d879e0",
"created_at": "2025-06-01T14:05:35Z"
}
],
"continuation_token": null
}
}