/api/orgs/{org_id}/identities/{identity_id}/allowancesアイデンティティのプラン割り当てを取得
どのキーも自分自身のアイデンティティを読み取れます(他のアイデンティティの場合は404)。プロビジョニングキー(プランに紐付いていないもの)は組織内の任意のアイデンティティを読み取れます。カウンターは受け付け時に適用されるもので、固定済みの定価による整数のnano-USDです(exactは10進数の文字列)。
認証: AuthorizationヘッダーにBearer形式のAPIキー
パスパラメーター
org_idstring必須お客様の組織ID(uuid)。
GET /api/whoamiで取得できます。identity_idstring必須アイデンティティID。
レスポンス
200割り当て。
レスポンス
identity_idstring必須assignmentobject | null必須いずれか
object
org_idstring必須identity_idstring必須revisioninteger必須次のPUTで
expected_revisionとして渡します。plan_keystring | null必須plan_versioninteger | null必須pending_plan_keystring | null必須pending_plan_versioninteger | null必須pending_effective_atstring | null必須updated_atstring必須budget_periodobjectいずれか
object
kindstring必須
object
kindstring必須source_period_idstring必須startstring必須endstring必須
pricing_basisstring必須period_startstring必須period_endstring必須groupsarray<object>必須groups
group_keystring必須limit_nano_usdinteger必須整数のnano-USD。
settled_nano_usdinteger必須整数のnano-USD。
reserved_nano_usdinteger必須処理中(整数のnano-USD)。
pending_nano_usdinteger必須整数のnano-USD。
remaining_nano_usdinteger必須整数のnano-USD。
exactobject必須JSONの数値が浮動小数点になるクライアント向けに、同じカウンターを10進数の文字列で示したもの。
exact
settled_nano_usdstring必須reserved_nano_usdstring必須pending_nano_usdstring必須remaining_nano_usdstring | null必須
budget_periodobjectいずれか
object
kindstring必須
object
kindstring必須source_period_idstring必須startstring必須endstring必須
aggregateobject | nullいずれか
object
limit_nano_usdinteger | null必須settled_nano_usdinteger必須整数のnano-USD。
reserved_nano_usdinteger必須処理中(整数のnano-USD)。
pending_nano_usdinteger必須整数のnano-USD。
remaining_nano_usdinteger | null必須exactobject必須JSONの数値が浮動小数点になるクライアント向けに、同じカウンターを10進数の文字列で示したもの。
exact
settled_nano_usdstring必須reserved_nano_usdstring必須pending_nano_usdstring必須remaining_nano_usdstring | null必須
401APIキーがない、不明、または失効しています。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
403このポリシー変更の権限がない、または顧客プランのキーです。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
404不明な組織、アイデンティティ、またはプランです。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
409expected_revisionが古いか、このデプロイ環境では顧客プランの適用が無効です。レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
リクエスト
curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/identities/acme-support/allowances' \
-H "Authorization: Bearer <YOUR_API_KEY>"レスポンス
{
"identity_id": "acme-support",
"assignment": {
"org_id": "3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10",
"identity_id": "acme-support",
"revision": 3,
"plan_key": "starter",
"plan_version": 2,
"pending_plan_key": null,
"pending_plan_version": null,
"pending_effective_at": null,
"updated_at": "2026-11-10T16:00:00Z",
"budget_period": {
"kind": "calendar_month_utc"
}
},
"pricing_basis": "frozen_list_value",
"period_start": "2026-11-01T00:00:00Z",
"period_end": "2026-12-01T00:00:00Z",
"groups": [
{
"group_key": "fast-models",
"limit_nano_usd": 20000000000,
"settled_nano_usd": 6400000000,
"reserved_nano_usd": 40000000,
"pending_nano_usd": 0,
"remaining_nano_usd": 13560000000,
"exact": {
"settled_nano_usd": "6400000000",
"reserved_nano_usd": "40000000",
"pending_nano_usd": "0",
"remaining_nano_usd": "13560000000"
}
}
],
"budget_period": {
"kind": "calendar_month_utc"
},
"aggregate": null
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/identities/acme-support/allowances