Skip to main content
PUT
Turn the AI credentials proxy on or off

Authorizations

Authorization
string
header
required

Boat bearer token in the form boat_.... Service API keys authenticate sandbox operations.

Headers

X-Boat-Org
string

Same as the org query parameter. Query wins when both are set.

Query Parameters

org
string

Billing wallet for this request: an organization you belong to, by id (team_…) or by name as GET /orgs lists it (case-insensitive), or personal. Omitted, the account's active wallet applies (PATCH /orgs/active; personal until set). Two organizations sharing the name answer 409 ambiguous_org and need the id. Sandboxes and snapshots stay creator-private. On /environments routes, only this query parameter selects the organization's shared environments; the X-Boat-Org header and the active wallet do not apply there. Members read them, owners and admins change them.

Body

application/json
enabled
boolean
required

Response

The new state.

ok
boolean
required
Example:

true

type
string
required

Stable success envelope discriminator added by v1.

success
boolean
required
accountId
string
required

The account the switch belongs to, a person or an organization.

org
boolean
required

True when accountId is an organization.

enabled
boolean
required
enabledAt
string<date-time> | null
required
pricing
object
required
proxyUrl
string<uri>
required

The base URL sandboxes call instead of the providers.