GET/api/orgs/{org_id}/grants

グループとモデルアクセスのマトリクスを取得する

すべてのグループ、組織が使えるエイリアス(公開カタログのモデルと、組織独自のカスタムモデル(org_scoped: true))、カスタムモデルの明示的な許可、各グループのモデルアクセスを返します。公開モデルは、モデルアクセスで絞り込まない限りすべてのグループが呼び出せるため、許可の行はありません。model_accessにないグループは制限なしです。組織管理者またはプロビジョニングキーが必要です。

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

パスパラメーター

  • org_idstring必須

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

レスポンス

  • 200

    マトリクス。

    レスポンス
    • identitiesarray<object>必須
      identities
      • identity_idstring必須
      • display_namestring必須
      • descriptionstring | null必須
      • activeboolean必須

        falseの場合、その下で新しいキーを発行できなくなります。既存のキーは失効するまで引き続き利用できます。

      • is_defaultboolean必須

        組織の既定のアイデンティティ(ダッシュボードで発行したキーを保持)。

      • created_atstring必須
      • updated_atstring必須
      • parent_identity_idstring | null

        親グループ。最上位のグループではnull。

      • monthly_budgetobject | null

        monthly_budget_nano_usdを指定して作成した場合だけ設定される、そのグループ予算。

        いずれか

        object

        • 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

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

    • aliasesarray<object>必須
      aliases
      • alias_idstring必須
      • alias_namestring必須

        呼び出し元が送信するモデルスラッグ。

      • originstring必須
      • org_scopedboolean必須

        組織独自のカスタムモデルはtrue、公開カタログのモデルはfalse。

    • grantsarray<object>必須

      カスタムモデルの明示的な許可。

      grants
      • identity_idstring必須
      • alias_idstring必須
    • model_accessarray<object>必須

      モードを選択したかリストを保存したグループ。含まれないグループは制限なしです。

      model_access
      • identity_idstring必須
      • modeenum必須

        allはすべてのモデルを呼び出せる状態にし、allowlistはalias_idsだけを許可します。

        "all""allowlist"
      • alias_idsarray<string>必須

        保存済みのリスト。モードがallの間も保持されます。

  • 401

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

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

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

    • actionstring

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

    • detailsobject

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

  • 403

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

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

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

    • actionstring

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

    • detailsobject

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

  • 404

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

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

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

    • actionstring

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

    • detailsobject

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

リクエスト

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

レスポンス

{
  "identities": [
    {
      "identity_id": "developers-2b8e51c0",
      "display_name": "Developers",
      "description": null,
      "active": true,
      "is_default": false,
      "created_at": "2026-11-20T09:14:00Z",
      "updated_at": "2026-11-20T09:14:00Z",
      "parent_identity_id": null
    }
  ],
  "aliases": [
    {
      "alias_id": "model-8e2a4c6f-1d3b-4f5a-a9c7-2b0e6d8f1a34",
      "alias_name": "gpt-6-luna",
      "origin": "catalog",
      "org_scoped": false
    },
    {
      "alias_id": "model-5c7e9a1b-3d5f-4b7d-9f1b-3d5f7b9d1f36",
      "alias_name": "acme-support-ft",
      "origin": "catalog",
      "org_scoped": true
    }
  ],
  "grants": [
    {
      "identity_id": "developers-2b8e51c0",
      "alias_id": "model-5c7e9a1b-3d5f-4b7d-9f1b-3d5f7b9d1f36"
    }
  ],
  "model_access": [
    {
      "identity_id": "developers-2b8e51c0",
      "mode": "all",
      "alias_ids": []
    }
  ]
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/grants