Skip to main content
post/completion-messages/{task_id}/stop
Request example
Response
post/completion-messages/{task_id}/stop

Authorization

Authorizationstringheaderrequired#

每个请求都通过 API Key 认证:Authorization: Bearer {API_KEY}。应用接口使用应用 API Key,知识库接口使用知识库 API Key(快速开始)。

API Key 应保存在服务端,切勿嵌入客户端代码。缺失或无效的 Key 会返回 HTTP 401(unauthorized)。

Path parameters

task_idstringrequired#
任务 ID,来自 发送消息 的流式事件。

Body

application/json
userstringrequired#
终端用户标识,由你的应用定义,需在应用内唯一。必须与发送原始消息时的 user 一致;不一致时停止不会生效,但仍返回成功。参见 终端用户身份。

Responses

application/json
操作成功。
resultstring#
操作结果,固定为 success。