GET/api/orgs/{org_id}/budgets

月の予算を一覧表示

組織管理者またはプロビジョニングキーが必要です。すべての予算(すべてのスコープ、繰り返す予算と共有予算を含む)とperiodの残高を返します。共有予算(scope_kind: keys)はname、reset_period、api_key_idsと現在の期間の支出も含みます。金額は整数のnano-USDです。

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメーター

  • org_idstring必須

    お客様の組織ID(uuid)。GET /api/whoamiで取得できます。

クエリパラメーター

  • periodstring必須

    計測する月(YYYY-MM)。

レスポンス

  • 200

    予算。

    レスポンス
    • budgetsarray<object>必須
      budgets
      • budget_idstring必須
      • periodstring必須

        YYYY-MM、または定期の場合は*。

      • scope_kindenum必須

        keysは共有予算、keyは以前のキー単位の予算です。

        "team""identity""key""model""pool""deployment""keys"
      • 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必須
        "session""api_key"
      • created_by_api_key_idstring | null必須

        キーが行を書き込んだ場合の、そのキー。

      • namestring | null

        共有予算のみ。

      • reset_periodenum

        共有予算のみ。

        "daily""weekly""monthly""yearly"null
      • api_key_idsarray | null

        共有予算のみ。予算を使うキー。

  • 401

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

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

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

    • actionstring

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

    • detailsobject

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

  • 403

    キーがプロビジョニングキーではない(推論キーは読み取りを含めて拒否されます)か、顧客プランキーです。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

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

    • actionstring

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

    • detailsobject

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

  • 404

    不明な組織か、キー自身の組織ではありません。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

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

    • actionstring

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

    • detailsobject

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

  • 422

    periodがない、または形式が不正です。

リクエスト

curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/budgets?period=2026-11' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

レスポンス

{
  "budgets": [
    {
      "budget_id": "b7e1c0d2-5a4f-4c39-8e16-2d9f0a7b3c51",
      "period": "*",
      "scope_kind": "identity",
      "api_key_id": null,
      "identity_id": "acme-support",
      "alias_id": null,
      "pool_id": null,
      "deployment_id": null,
      "limit_nano_usd": 50000000000,
      "reserved_nano_usd": 120000000,
      "settled_nano_usd": 18400000000,
      "remaining_nano_usd": 31480000000,
      "created_by_kind": "api_key",
      "created_by_api_key_id": "6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33"
    }
  ]
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/budgets?period=2026-11