Grant an account access
Gives another account access to one environment of a private model you own, production
unless the body names another. Every member and API key of that account can then mint
tokens for the environment, start sessions on it, and read the model’s public view and
schemas. It gets no releases, instances, or writes. The granted account pays for its own
sessions. A grant applies at the next request.
Session tokens can open a granted environment when their model scope names it as
owner/name:environment. See Limit what a token can do.
A model may have at most 100 accounts with access by default.
Callable by an account_admin of the owning account when model serving is enabled for the
account. The CLI equivalent is reactor model access grant.
Authorizations
A Reactor API key (rk_...), sent as Authorization: Bearer rk_.... Keep it on a server.
Path Parameters
The model's ID (not its project ID). Find it with GET /models?name=your-org/your-model.
The account's ID. Use the account_id from GET /me.
Body
The name or ID of an environment of the model. Defaults to production.