Skip to main content
post/apps/annotations
Request example
Response
post/apps/annotations

Authorization

Authorizationstringheaderrequired#

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

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

Body

application/json
answerstringrequired#
命中该标注时返回的答案。
questionstringrequired#
应用用来匹配用户输入的问题文本。

Responses

application/json
201
标注创建成功。
answerstring#
标注被匹配时返回的预定义回答。
created_atinteger#
创建时间戳(Unix 纪元秒)。
hit_countinteger#
该标注被匹配并作为回复返回的次数。
idstring#
标注唯一标识符。
questionstring#
触发该标注的问题文本。