获取 API Key 明文

POST /api/token/{id}/key

说明

返回指定 API Key 的明文(sk-xxx...)。

服务端有 CriticalRateLimit 限流(默认 5 次/分钟),且接口禁止缓存。请妥善保存返回值——后续再次调用列表/详情接口时只能拿到脱敏版本。

请求头

名称位置类型必填说明
idpathintegerAPI Key 的数据库 id
Authorizationheaderstring系统访问令牌
New-Api-Userheaderstring用户 ID

响应

字段类型必填说明
successboolean
messagestring
dataobject