GET/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必須
  • 401

    APIキーがない、不明、または失効しています。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 403

    このポリシー変更の権限がない、または顧客プランのキーです。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 404

    不明な組織、アイデンティティ、またはプランです。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 409

    expected_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