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

      查询会话历史

      POST
      /service-agent/v1/api/agent/chat/publish/conversation/history

      请求参数

      Body 参数application/json必填

      示例
      {
          "releaseKey": "",
          "conversationId": ""
      }

      请求示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/service-agent/v1/api/agent/chat/publish/conversation/history' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "releaseKey": "",
          "conversationId": ""
      }'

      返回响应

      🟢200成功
      application/json
      Body

      示例
      {
          "resultStatus": 0,
          "msg": "",
          "data": [
              {
                  "conversationId": "",
                  "conversationDetailId": "",
                  "chatPairId": "",
                  "content": "",
                  "prompt": "",
                  "contentType": 0,
                  "status": 0,
                  "isStop": true,
                  "files": [
                      {
                          "fileId": "",
                          "fileType": "",
                          "fileName": "",
                          "fileUrl": ""
                      }
                  ],
                  "suggestions": [],
                  "durationMs": 0,
                  "inputTokens": 0,
                  "outputTokens": 0
              }
          ],
          "requestId": "",
          "success": true
      }
      修改于 2026-04-13 09:14:58
      上一页
      删除会话消息
      Built with