GET/api/orgs/{org_id}/grants

Read the group and model access matrix

Every group, the aliases the org may use (public catalog models and its own custom models, org_scoped: true), the explicit custom-model grants, and each group's model access. Public models are callable by every group unless its model access narrows them, so they carry no grant rows. A group absent from model_access is unrestricted. Org admin or the provisioning key.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

Responses

  • 200

    The matrix.

    Response
    • identitiesarray<object>required
      identities
      • identity_idstringrequired
      • display_namestringrequired
      • descriptionstring | nullrequired
      • activebooleanrequired

        False blocks minting new keys under it; existing keys keep serving until revoked.

      • is_defaultbooleanrequired

        The org's default identity (holds dashboard-minted keys).

      • created_atstringrequired
      • updated_atstringrequired
      • parent_identity_idstring | null

        The parent group; null for a top-level group.

      • monthly_budgetobject | null

        Set only on a create that also set monthly_budget_nano_usd: that group budget.

        One of

        object

        • budget_idstringrequired
        • periodstringrequired

          YYYY-MM, or * for recurring.

        • scope_kindenumrequired

          keys is a shared budget; key is an older per-key budget.

          "team""identity""key""model""pool""deployment""keys"
        • api_key_idstring | nullrequired
        • identity_idstring | nullrequired
        • alias_idstring | nullrequired
        • pool_idstring | nullrequired
        • deployment_idstring | nullrequired
        • limit_nano_usdintegerrequired

          The cap, integer nano-USD. 0 is a hard zero cap.

        • reserved_nano_usdintegerrequired

          In flight, integer nano-USD.

        • settled_nano_usdintegerrequired

          Spent this month, integer nano-USD.

        • remaining_nano_usdintegerrequired

          Integer nano-USD.

        • created_by_kindenumrequired
          "session""api_key"
        • created_by_api_key_idstring | nullrequired

          The authoring key, when a key wrote the row.

        • namestring | null

          Shared budgets only.

        • reset_periodenum

          Shared budgets only.

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

          Shared budgets only: the keys drawing from it.

    • aliasesarray<object>required
      aliases
      • alias_idstringrequired
      • alias_namestringrequired

        The model slug callers send.

      • originstringrequired
      • org_scopedbooleanrequired

        True for the org's own custom model, false for a public catalog model.

    • grantsarray<object>required

      Explicit custom-model grants.

      grants
      • identity_idstringrequired
      • alias_idstringrequired
    • model_accessarray<object>required

      Groups that chose a mode or saved a list; an absent group is unrestricted.

      model_access
      • identity_idstringrequired
      • modeenumrequired

        all leaves every model callable; allowlist admits only alias_ids.

        "all""allowlist"
      • alias_idsarray<string>required

        The saved list; kept while the mode is all.

  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 403

    The key is not a provisioning key (inference keys are refused, reads included), or it is a customer-plan key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    Unknown organization, or not the key's own organization.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

Request

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

Response

{
  "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