Skip to main content
POST
/
apps
/
annotations
Error
A valid request URL is required to generate request examples
{
  "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
  "question": "What is Dify?",
  "answer": "Dify is an open-source LLM application development platform.",
  "hit_count": 0,
  "created_at": 1705407629
}

Authorizations

Authorization
string
header
required

API Key 认证。对于所有 API 请求,请在 Authorization HTTP 头中包含您的 API Key,并加上 Bearer 前缀。示例:Authorization: Bearer {API_KEY}强烈建议将 API Key 存储在服务端,不要在客户端共享或存储,以避免 API Key 泄漏导致严重后果。

Body

application/json

创建新标注的请求体。

question
string
required

标注问题。

answer
string
required

标注答案。

Response

201 - application/json

标注创建成功。

id
string<uuid>

标注唯一标识符。

question
string | null

触发该标注的问题文本。

answer
string | null

标注被匹配时返回的预定义回答。

hit_count
integer | null

该标注被匹配并作为回复返回的次数。

created_at
integer<int64> | null

创建时间戳(Unix 纪元秒)。