Add or replace an organization model key
const url = 'https://api.global.stillbox.example/v1/models/providers/anthropic';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"api_key":"example","base_url":"example","location":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.global.stillbox.example/v1/models/providers/anthropic \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "api_key": "example", "base_url": "example", "location": "example" }'Every member’s agents then use it through the platform; the key itself never enters a sandbox. For
custom, give an OpenAI-compatible endpoint (https) and where it runs.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Anthropic’s or OpenAI’s API, or an OpenAI-compatible endpoint of your own.
Request Bodyrequired
Section titled “Request Bodyrequired”object
For custom only, an https address, e.g. https://my-endpoint.example.com/v1
For custom only, where it runs, as a region code (us, eu, uae, in, uk, sg, sa, …). Needed in the global region; elsewhere the region’s operator sets it, and this is ignored.
Example generated
{ "api_key": "example", "base_url": "example", "location": "example"}Responses
Section titled “Responses”The new settings
object
Whether agents may use models that run outside this region. Sovereign regions default to in_region.
The policy is the region’s default, not one the organization chose.
The region’s operator keeps every organization’s model calls in the region; the policy can’t be widened, and own endpoints run only at addresses the operator approved.
The most each person’s model calls may cost a month, estimated from list prices; 0 means no cap.
The region can keep company keys (it has a secrets key).
The date of the price list costs are estimated from.
object
Anthropic’s or OpenAI’s API, or an OpenAI-compatible endpoint of your own.
The key’s last four characters.
For an own endpoint, its address.
Where calls are processed, as a region code (us, eu, uae, in, …). Outside the global region, an own
endpoint’s location is the one the region’s operator approved for its address, or unverified.
Calls to it are processed outside this region.
The organization’s policy keeps agents from using it.
Sandboxes may use Stillbox’s own model keys for providers the organization has no key for, charged to credits at cost.
The providers Stillbox offers keys for in this region, where they process calls, and whether the policy allows them.
object
Example
{ "policy": "any", "providers": [ { "provider": "anthropic" } ]}The request is invalid
object
Example
{ "code": "not_found"}The API key is missing or invalid
object
Example
{ "code": "not_found"}Only an owner can do this (owner_only), or the invitation is for another address (not_invited)
object
Example
{ "code": "not_found"}