查询当前 API Key

GET/v1/key

查询当前请求所使用的 API Key 信息。

身份验证

Authorization Bearer

在 Authorization 请求头中使用 Token360 API Key(sk-token360-...)。

响应

dataobject

当前 API Key 信息。

data.hashstring

管理接口使用的 hash 标识。

data.namestring

API Key 名称。

data.labelstring

展示标签,与 name 一致。

data.disabledboolean

当 Key 状态不是 ACTIVE 或 expires_at 已过期时为 true。

data.workspace_idstring

Key 所属 workspace code。

data.creator_user_idstring | null

所有者用户 ID。

data.created_atstring

创建时间,UTC ISO-8601 格式。

data.updated_atstring | null

最后更新时间。

data.expires_atstring | null

UTC 过期时间,或 null。

data.usagenumber

Token360 credit 累计使用量(USD)。

data.usage_dailynumber

日使用量,当前为 0。

data.usage_weeklynumber

周使用量,当前为 0。

data.usage_monthlynumber

月使用量,当前为 0。

data.limitnumber | null

额度限制,当前为 null。

data.limit_remainingnumber | null

剩余额度,当前为 null。

data.limit_resetstring | null

额度重置周期,当前为 null。

data.is_free_tierboolean

当前为 false。

data.is_management_keyboolean

当前管理响应中为 true。

data.is_provisioning_keyboolean

当前为 false。

data.rate_limitobject

每分钟请求限制信息。

请求

Shell
1curl https://api.token360.ai/v1/key \
2  -H "Authorization: Bearer sk-token360-inf-..."

响应

JSON
1{
2  "data": {
3    "hash": "f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943",
4    "name": "Analytics Service Key",
5    "label": "Analytics Service Key",
6    "disabled": false,
7    "workspace_id": "DEFAULT",
8    "creator_user_id": "42",
9    "created_at": "2026-06-04T00:00:00Z",
10    "updated_at": "2026-06-04T01:00:00Z",
11    "expires_at": null,
12    "usage": 12.34,
13    "usage_daily": 0,
14    "usage_weekly": 0,
15    "usage_monthly": 0,
16    "limit": null,
17    "limit_remaining": null,
18    "limit_reset": null,
19    "is_free_tier": false,
20    "is_management_key": true,
21    "is_provisioning_key": false,
22    "rate_limit": {
23      "interval": "minute",
24      "note": "Token-360 per-minute request limit",
25      "requests": 1000
26    }
27  }
28}
此页面对您有帮助吗?