GET管理接口

查询单份条款文档设置

查询单份条款文档设置

URL

/api/v1/admin/terms/documents/{slug}

鉴权方式

需要管理员 JWT(Authorization: Bearer <token>)

请求参数

Path 参数

名称类型必填说明
slugprivacy-policy | sdk-compliance条款文档标识,取值见 TermsDocumentSlug

Header 参数

名称类型必填说明
AuthorizationstringBearer <管理员 JWT 或 API Key>

该接口无需请求体。

响应示例

200 响应

{
  "slug": "privacy-policy",
  "title": "string",
  "summary": "string",
  "custom": false,
  "content": "string",
  "custom_content": "string",
  "custom_updated_at": 0,
  "builtin_content": "string",
  "builtin_updated_at": 0,
  "updated_at": 0,
  "placeholders": [
    {
      "key": "operator_name",
      "label": "string",
      "hint": "string",
      "example": "string",
      "required": false
    }
  ]
}
GET

Try It Out

请求 URL 预览

/api/v1/admin/terms/documents/privacy-policy