智能体接口文档
    • 发布对话(SSE)
      POST
    • 文件上传
      POST
    • 删除会话消息
      POST
    • 查询会话历史
      POST
    • 查询会话历史 (游标滚动分页)
      POST

      查询会话历史 (游标滚动分页)

      POST
      https://api.haoee.com/service-agent/v1/api/agent/chat/publish/conversation/history/cursor

      请求参数

      Header 参数

      Body 参数application/json必填

      示例
      {
          "releaseKey": "",
          "conversationId": "",
          "cursor": "",
          "pageSize": 20
      }

      请求示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location 'https://api.haoee.com/service-agent/v1/api/agent/chat/publish/conversation/history/cursor' \
      --header 'chat-key: {{API_KEY}}' \
      --header 'Content-Type: application/json' \
      --data '{
          "releaseKey": "",
          "conversationId": "",
          "cursor": "",
          "pageSize": 20
      }'

      返回响应

      🟢200成功
      application/json
      Bodyapplication/json

      示例
      {
          "resultStatus": 0,
          "msg": "",
          "data": [
              {
                  "conversationId": "",
                  "conversationDetailId": "",
                  "chatPairId": "",
                  "content": "",
                  "structuredConversation": "",
                  "prompt": "",
                  "contentType": 0,
                  "status": 0,
                  "isStop": true,
                  "files": [
                      {
                          "fileId": "",
                          "fileType": "",
                          "fileName": "",
                          "fileUrl": "",
                          "size": 0
                      }
                  ],
                  "suggestions": [],
                  "durationMs": 0,
                  "inputTokens": 0,
                  "outputTokens": 0
              }
          ],
          "requestId": "",
          "nextCursor": "",
          "hasMore": true,
          "success": true
      }
      修改于 2026-07-10 10:29:59
      上一页
      查询会话历史
      Built with