Skip to Content
FeaturesGrants

Grants

A grant is the authorization record an owner creates for a developer. It defines exactly what proxy capabilities that developer has.

Fields

FieldNotes
user_subCognito sub of the granted developer
allowed_modelsModel IDs and/or *-latest aliases, e.g. ["claude-opus-4-7", "claude-sonnet-latest"]
allowed_regionsSubset of eu-central-1, eu-central-2, us-east-1. Must not be empty.
default_regionOverrides the tenant default for this user
monthly_budget_usdHard cap in USD; null = no per-developer cap (tenant cap still applies)
allowed_skillsSkill IDs the developer may invoke; ["*"] = all active skills
statusactive / revoked
created_bySub of the owner who created it

Enforcement rules

  • A developer without a grant cannot use the proxy (403, “no grant found”).
  • A revoked grant blocks immediately — no TTL, no grace period.
  • allowed_models is checked against the live model catalog at request time. A deprecated model still listed in a grant is silently skipped in the GET /anthropic/v1/models response.
  • allowed_regions must be a non-empty subset of the supported regions; an empty list is rejected at the API layer.

PUT /v1/grants/{user_id} is idempotent — it creates the grant if absent and updates it if present.

Last updated on