会话管理
获取会话历史消息
以滚动加载的格式返回历史聊天记录,首页返回最新的 limit 条消息,即按时间倒序排列。
GET
Error
Documentation Index
Fetch the complete documentation index at: https://dify-6c0370d8-laipz8200-docs-plugin-model-providers-cache-t.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API Key 认证。对于所有 API 请求,请在 Authorization HTTP 头中包含您的 API Key,并加上 Bearer 前缀。示例:Authorization: Bearer {API_KEY}。强烈建议将 API Key 存储在服务端,不要在客户端共享或存储,以避免 API Key 泄漏导致严重后果。
Query Parameters
会话 ID。
用户标识符。
当前页第一条聊天记录的 ID。默认为 null(获取最新消息)。获取后续页面时,使用当前列表中第一条消息的 ID 来获取更早的消息。
每次请求返回的聊天历史消息数量。
Required range:
1 <= x <= 100Error