Skip to main content
GET
查询单个 API Key 当前的模型访问策略。如果该 Key 从未单独配置过,返回默认策略(mode=all_enabled)。
allowedModels / excludedModels 实际可能返回 null 或空数组,调用方建议统一按空数组处理。

权限

被查询的 API Key 必须属于当前调用方所在的团队。

请求头

string
必填
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

路径参数

string
必填
目标 API Key 的 stringId。

响应参数

string
必填
API Key 的 stringId。
object
必填
模型访问策略对象。
string
必填
策略状态。active 表示策略有效;no_available_models 表示当前无可访问模型(例如已选模型全部下线)。
int32
必填
可访问模型数量。
int32
必填
已排除模型数量。
int64
必填
最近一次更新时间,Unix 时间戳(秒)。默认策略下为 0
string
必填
最近一次更新操作者的用户标识。默认策略下为空字符串。
最后修改于 2026年7月22日