Resources
Key Model Allowlist
Read or replace the per-key model allowlist that gates which Theo models a key may run.
GET
Key Model Allowlist
Each API key can carry an explicit model allowlist of Theo-branded model ids (e.g.
theo-1-flash, theo-1-reason). An empty allowlist means the key inherits all models (the default). A non-empty allowlist restricts the key: any request that resolves to a model outside the list is rejected with 403 model_not_allowed — on both the native and OpenAI-compatible endpoints.
Authentication
Requires an API key withbilling scope. The caller must own the key (or be a team member allowed to manage keys).
Path Parameters
string
required
The API key UUID.
Get the allowlist
GET /api/v1/keys/{id}/models
string
The API key UUID.
boolean
true when the allowlist is empty (the key can run any model).string[]
The allowed Theo model ids (empty when
inherits_all is true).Replace the allowlist
PUT /api/v1/keys/{id}/models
string[]
required
The full set of Theo model ids to allow (e.g.
["theo-1-reason", "theo-1-code"]). Pass an empty array to reset the key to inherit all models. Unknown ids are rejected.Example
Key Model Allowlist
