Gateway access is decided on two separate axes: RBAC decides what a person or credential may configure in the console and admin API, and model access controls decide which models a request may call. This page covers both. For the organization → product → workspace model and how teams are managed, see Teams & permissions.

How it works

  • Owner is the only organization role. It manages members, security and who may reach each product, and grants no Gateway access by itself.
  • Product roles are member < editor < admin. A product role applies in every workspace of the product, including ones created later.
  • Workspace roles use the same three names and are effective only while the holder also has Gateway access.

Gateway permissions

Roles are defined in code; each role holds everything the role below it holds.
Permissions are namespaced by product. A gateway.* permission is never satisfied by a Studio or Deployer role, and no product role grants any org.* permission.

Workspace roles and custom roles

Inside a workspace, a member holds exactly one system role plus any number of the workspace’s custom roles and individual extra permissions. Custom roles and extras only add; they are built from the gateway.* permissions above. In the console this lives under Gateway → Access → Roles & Permissions. A role name is 1–48 characters: letters, digits, spaces, ., _ or -, starting with a letter or digit.
None of this can escalate. Reading needs gateway.members.read and changing needs gateway.members.manage in that workspace; you can only grant permissions you hold there yourself, cannot hand out a system role above your own, and cannot demote the last manager. The admin role always holds everything and is not editable.

Credentials and service identities

A virtual account must be created with both allowed_models and allowed_providers; an account that names none reaches none. Tokens are issued only from a console session, never from another token, and their plaintext appears only in the response that issued them. In the console, find these under Gateway → Access → Personal Access Tokens and Virtual Accounts. See Credentials for the full API.

Restricting model access

Several independent checks run on every /v1 request; a model must pass all of them.
An ml_vat_ token can reach only the models and providers its account lists. A model outside allowed_models returns 403 model_not_allowed; a provider outside allowed_providers returns 403 provider_access_denied.
A team’s models list (logical names, or *). A team with no list configured is unrestricted. Otherwise a request for an unlisted model returns 403 model_not_allowed. To call a virtual model, the list must include its name. Set it with POST /admin/teams (organization Owner only).
A provider account can be restricted to named users, teams or everyone in the workspace, as user (may call its models) or manager (may also edit it). everyone can only be granted user. An account with no bindings is open to its workspace. A refused caller gets 403 provider_access_denied.
Subject type is user, team or everyone (no id). List bindings with GET, remove one with DELETE /admin/gateway/providers/{id}/access/{bindingID}. Needs gateway.providers.manage, or a manager binding on that account (the same applies to the provider key scope below).
PUT /admin/gateway/providers/{id}/scope with {models_scope, model_ids, api_keys_scope, api_key_ids}, each scope all or specific, limits an account to particular models or to traffic from particular API keys. GET returns the current scope.
Allow- and deny-lists at organization, workspace, team, service-account, user, end-user or API-key scope; deny wins. Managed in Gateway → Policies → Model restrictions or at /admin/gateway/policies/model-restrictions with gateway.models.manage. See Policies.
Routing configs are checked target by target: a target the caller may not use is skipped, never served. Auto Routing and virtual models cannot route around a deny; if every target is refused the caller gets 403 model_not_allowed.

Next steps

Teams & permissions

Organization, product and workspace rungs.

Credentials

PATs, virtual accounts and rotation.

Policies

Access policies and model restrictions.

Rate limiting

Per-identity request and token ceilings.