/api/orgs/{org_id}/keys/{key_id}キーのグループ、予算、制限を取得する
グループ、共有予算、レート制限、IPルールを返します。シークレットは返しません。組織管理者またはプロビジョニングキーが必要です。
認証: AuthorizationヘッダーにBearer形式のAPIキー
パスパラメーター
org_idstring必須お客様の組織ID(uuid)。
GET /api/whoamiで取得できます。key_idstring必須キーのID(作成時の
id、または/api/v1/keysのhash)。シークレットではありません。
レスポンス
200キー。
レスポンス
idstring必須namestring必須labelstring必須キーのプレフィックスと末尾の文字。
identity_idstring | null必須キーのグループ。
budgetobject | null必須キーが使う共有予算。
いずれか
object
budget_idstring必須periodstring必須YYYY-MM、または定期の場合は*。scope_kindenum必須keysは共有予算、keyは以前のキー単位の予算です。api_key_idstring | null必須identity_idstring | null必須alias_idstring | null必須pool_idstring | null必須deployment_idstring | null必須limit_nano_usdinteger必須上限(整数のnano-USD)。0は厳格なゼロ上限です。
reserved_nano_usdinteger必須処理中(整数のnano-USD)。
settled_nano_usdinteger必須今月の支出(整数のnano-USD)。
remaining_nano_usdinteger必須整数のnano-USD。
created_by_kindenum必須created_by_api_key_idstring | null必須キーが行を書き込んだ場合の、そのキー。
namestring | null共有予算のみ。
reset_periodenum共有予算のみ。
api_key_idsarray | null共有予算のみ。予算を使うキー。
rate_limitsobject | null必須キーがティアの期間を使う場合はnull。
いずれか
object
requests_per_minuteinteger | null必須tokens_per_minuteinteger | null必須tokens_per_hourinteger | null必須tokens_per_dayinteger | null必須
ip_rulesobject | nullキーのIPルール。どのアドレスからも受け付ける場合はnull。
いずれか
object
modeenum必須allowはこれらの範囲からだけキーを受け付け、denyはこれらの範囲からは受け付けません。cidrsarray<string>必須CIDR表記のIPv4またはIPv6の範囲。
legacy_spend_capsarray<object>必須legacy_spend_caps
limit_nano_usdinteger必須periodstring必須
is_provisioningboolean必須expires_atstring | null必須created_atstring必須revoked_atstring | null必須
401APIキーがない、不明、または失効しています。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
403キーがプロビジョニングキーではない(推論キーは読み取りを含めて拒否されます)か、顧客プランキーです。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
404このIDのキーは組織にありません。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
リクエスト
curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/keys/11111111-1111-1111-1111-111111111111' \
-H "Authorization: Bearer <YOUR_API_KEY>"レスポンス
{
"id": "11111111-1111-1111-1111-111111111111",
"name": "production-server",
"label": "xpl_live_3b7e…04fc",
"identity_id": "org-3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10",
"budget": null,
"rate_limits": null,
"ip_rules": null,
"legacy_spend_caps": [
{
"limit_nano_usd": 25000000000,
"period": "daily"
}
],
"is_provisioning": false,
"expires_at": null,
"created_at": "2026-11-02T09:14:22.501Z",
"revoked_at": null
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/keys/11111111-1111-1111-1111-111111111111