ApiSandbox settings
Get Sandbox Settings
Return the current sandbox configuration. Reads from DB first (admin-editable values), falls back to env vars for fields not yet set in DB. Also includes image state from DB.
Authorization
User API Key AuthorizationBearer <token>
User API key (mgw_usr_live_* or mgw_usr_test_*)
In: header
Cookie Parameters
access_token?|
Response Body
application/json
application/json
curl -X GET "https://loading/api/v1/settings/sandbox"{
"provider_type": "docker",
"warm_pool_enabled": true,
"default_max_per_user": 0,
"idle_timeout_seconds": 0,
"stopped_retention_seconds": 0,
"config_fallback_image": "string",
"db_default_image": "string",
"env_allowlist": [
"string"
],
"db_active_images": [
"string"
],
"k8s_namespace": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Get Pool Summary
Return an aggregate warm pool summary across all images. When ``warm_pool_enabled`` is *false*, numeric pool fields are zeroed out and ``per_image`` is empty -- but ``total_images`` still reflects the count of active+ready images.
Update Sandbox Settings
Update sandbox settings. Only updates fields provided in the request body. Refreshes the in-memory provider snapshot so changes take effect immediately without restart. Returns the full updated configuration.
