Create a model access policy
LLM Gateway: Model Access
Create a model access policy
Either an allowlist (only listed targets are permitted) or a denylist (listed targets are blocked). Targets can specify a model alias, an upstream model, a provider, or a (provider, model) combination.
POST
Create a model access policy
Authorizations
JWT obtained through Barndoor's authentication flow. Pass the token
verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's
loginInteractive() helper to obtain a token in scripts and notebooks.
Body
application/json
Available options:
allowlist, denylist Minimum array length:
1- Option 1
- Option 2
- Option 3
- Option 4
Available options:
llm, all Response
The newly created policy
Available options:
org, team, user, project, api_key, mcp_server, agent, role, group Available options:
allowlist, denylist - Option 1
- Option 2
- Option 3
- Option 4
Available options:
llm, all 