获取 API Key
GET /api/v1/gateway/keys/{key_id}
请求参数
| 参数 |
位置 |
类型 |
必填 |
说明 |
key_id |
path |
string |
是 |
|
请求示例
curl -X GET https://api.openbili.com/api/v1/gateway/keys/KEY_ID \
-H "Authorization: Bearer YOUR_API_KEY"
响应
| 字段 |
类型 |
必填 |
说明 |
id |
string |
是 |
Id |
org_id |
string |
是 |
Org Id |
team_id |
string | null |
否 |
Team Id |
name |
string |
是 |
Name |
key |
string | null |
否 |
Full key, only returned at creation |
key_prefix |
string |
是 |
Key Prefix |
models_allowed |
array |
是 |
Models Allowed |
rpm_limit |
integer |
是 |
Rpm Limit |
tpm_limit |
integer |
是 |
Tpm Limit |
is_sandbox |
boolean |
是 |
Is Sandbox |
allowed_ips |
array | null |
否 |
Allowed Ips |
spending_limit_usd |
string | null |
否 |
Spending Limit Usd |
expires_at |
string | null |
否 |
Expires At |
rotate_grace_until |
string | null |
否 |
Rotate Grace Until |
status |
string |
是 |
Status |
created_at |
string | string |
是 |
Created At |