智能体接口文档
    • 会话
      POST
    • 文件上传
      POST

      会话

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

      请求参数

      Header 参数

      Body 参数application/json必填

      示例
      {
        "releaseKey": "sk-a3f5b9c2...",
        "ulid": "01KMHPD0E6MSH7SR1RRDY69DV4",
        "query": [
          {
            "type": "text",
            "text": "请帮我分析一下这份产品需求文档。"
          },
          {
            "type": "file",
            "fileUrl": "http://www.example.com/xxx.pdf",
            "fileName": "需求文档.pdf",
            "fileId": "file-987654"
          }
        ]
      }

      请求示例代码

      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' \
      --header 'chat-key: {{API_KEY}}' \
      --header 'Content-Type: application/json' \
      --data-raw '{
        "releaseKey": "sk-a3f5b9c2...",
        "ulid": "01KMHPD0E6MSH7SR1RRDY69DV4",
        "query": [
          {
            "type": "text",
            "text": "请帮我分析一下这份产品需求文档。"
          },
          {
            "type": "file",
            "fileUrl": "http://www.example.com/xxx.pdf",
            "fileName": "需求文档.pdf",
            "fileId": "file-987654"
          }
        ]
      }'

      返回响应

      🟢200成功
      application/json
      Body

      示例
      {}
      修改于 2026-04-13 03:39:24
      下一页
      文件上传
      Built with