Create a rate limit
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
Who the rate limit applies to
org, team, user, role, group, api_key, mcp_server, agent, project, llm_provider, model, model_alias At least one of requests_per_minute or tokens_per_minute is required
x >= 0x >= 0Whether the policy applies to LLM, MCP, or both kinds of traffic
all, llm, mcp Response
The newly created policy
"Engineering RPM cap"
Who the rate limit applies to
org, team, user, role, group, api_key, mcp_server, agent, project, llm_provider, model, model_alias Whether the policy applies to LLM, MCP, or both kinds of traffic
all, llm, mcp UUID for scopes that reference an entity (user, agent, api_key, etc.)
String for name-based scopes (group name, role name, model alias, etc.)
