BazaarLinkBazaarLink
登入
文件API 参考SDK 参考Agent 应用AI Skills
API 密钥

检查 API 密钥(旧版别名)

GET /v1/auth/key 是 GET /v1/key 的旧版别名,两个路径返回完全相同的数据。普通密钥的 usage 和 requests* 是该密钥成功请求的数据,usage_scope 为 key。组织 Management Key 返回整个组织成功请求的数据,usage_scope 为 organization,合计与组织仪表板相同。组织密钥没有单独限额时,limit_remaining、is_free_tier 和速率等级使用组织余额;日、周、月边界按 UTC 计算。账户余额请使用 GET /v1/credits。

GET/v1/auth/key

验证

Authorization必填
string · header

在 Authorization 标头以 Bearer token 传入 API 密钥。

GET /v1/auth/key
curl https://api.bazaarlink.ai/v1/auth/key \
  -H "Authorization: Bearer $BAZAARLINK_API_KEY"
响应示例

成功。普通密钥的 usage_scope 为 key;组织 Management Key 的 usage_scope 为 organization。

{
  "data": {
    "label": "team-management",
    "limit": null,
    "limit_remaining": 81.58,
    "limit_reset": null,
    "expires_at": null,
    "is_free_tier": false,
    "is_management_key": true,
    "is_provisioning_key": true,
    "usage": 18.42,
    "usage_daily": 2.14,
    "usage_weekly": 8.73,
    "usage_monthly": 18.42,
    "requests": 73,
    "requests_daily": 9,
    "requests_weekly": 31,
    "requests_monthly": 73,
    "usage_scope": "organization",
    "rate_limit": {
      "requests": 200,
      "interval": "1m",
      "note": "Paid-tier rate limit."
    }
  }
}
客服
客服
您好!有什么可以协助?
请留下消息,我们会尽快回复。
检查 API 密钥(旧版别名) — BazaarLink API