GET /openapi/memorylake/api/v3/conversations/{conversationId}/messages
continuation_token 可翻阅完整的历史记录。
所需权限:
project:conv_read路径参数
string
必填
会话标识符
查询参数
integer
默认值:"20"
每页返回的消息数量
string
上一次响应返回的分页令牌,用于获取下一页结果
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/conversations/conv_7d2e3f4a5b6c7d8e/messages?page_size=50' \
-H 'Authorization: Bearer sk_xxxxxx'
响应
object
显示 分页消息列表
显示 分页消息列表
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_7d2e3f4a5b6c7d8e",
"sequence_no": 1,
"actor_id": "actor_user_jane",
"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_7d2e3f4a5b6c7d8e",
"sequence_no": 2,
"actor_id": "actor_assistant_v2",
"created_at": "2025-06-01T14:05:35Z"
}
],
"continuation_token": null
}
}