GET管理接口
查询实例级 AI 翻译配置
返回上游模型的配置状态(API Key 永不回读,仅返回 SHA-256 指纹)、内置提示词原文 与按当前协议拼出的完整请求地址。仅接受管理员 JWT,不开放给 API Key —— 这是一份能直接产生上游账单的出站凭据。
URL
/api/v1/admin/translation鉴权方式
需要管理员 JWT(Authorization: Bearer <token>)
请求参数
Header 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Authorization | string | 是 | Bearer <管理员 JWT 或 API Key> |
该接口无需请求体。
响应示例
200 响应
{
"configured": false,
"enabled": false,
"provider": "openai",
"base_url": "string",
"model": "string",
"has_api_key": false,
"api_key_fingerprint": "string",
"api_key_updated_at": 0,
"custom_prompt": false,
"system_prompt": "string",
"builtin_system_prompt": "string",
"prompt_variables": [
"string"
],
"request_url": "string",
"updated_at": 0
}GET
