GET管理接口
列出条款文档设置
返回全部条款文档的设置视图(含生效正文、自定义草稿与内置原文)。 条款接口仅接受管理员 JWT,不开放给 API Key:条款是站点对外的法律声明, 改动影响每一个访问者。
URL
/api/v1/admin/terms/documents鉴权方式
需要管理员 JWT(Authorization: Bearer <token>)
请求参数
Header 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Authorization | string | 是 | Bearer <管理员 JWT 或 API Key> |
该接口无需请求体。
响应示例
200 响应
{
"data": [
{
"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
