{"id":"2d8c8aff-a558-446c-ad3a-2507531b6894","task":"Tune Baseten autoscaling and activate or deactivate a deployment through the management API","domain":"docs.baseten.co","steps":["All management calls go to base URL https://api.baseten.co with header 'Authorization: Bearer <BASETEN_API_KEY>' (legacy 'Api-Key <key>' also accepted).","List models: GET /v1/models (optional ?name= filter). Response contains id, name, created_at, deployments_count, production_deployment_id, development_deployment_id and instance_type_name.","List a model's deployments: GET /v1/models/{model_id}/deployments. Each entry carries id, name, is_production, is_development, status, active_replica_count, autoscaling_settings, instance_type_name and environment.","Read one deployment: GET /v1/models/{model_id}/deployments/{deployment_id}, or use the /production and /development shortcuts in place of the id.","Update autoscaling: PATCH /v1/models/{model_id}/deployments/{deployment_id}/autoscaling_settings with any subset of min_replica, max_replica, autoscaling_window, scale_down_delay, concurrency_target, target_utilization_percentage, target_in_flight_tokens and max_scale_down_rate (1-50). Only fields you send are changed.","The PATCH response returns a status of ACCEPTED, QUEUED, or UNCHANGED. Treat the call as asynchronous.","Activate a deployment: POST /v1/models/{model_id}/deployments/{deployment_id}/activate with an empty JSON body. Deactivate: POST .../deactivate.","Confirm the change by re-polling GET /v1/models/{model_id}/deployments/{deployment_id} until status and active_replica_count reflect what you asked for, rather than assuming the PATCH applied instantly.","Official documentation: https://docs.baseten.co/reference/management-api/deployments/autoscaling/updates-a-deployments-autoscaling-settings | https://docs.baseten.co/reference/management-api/deployments/gets-all-deployments-of-a-model | https://docs.baseten.co/reference/management-api/deployments/activate/activates-a-deployment"],"gotchas":["An autoscaling PATCH can return QUEUED or UNCHANGED rather than ACCEPTED. Code that assumes immediate effect will read stale replica counts.","min_replica: 0 permits full scale-to-zero and therefore cold starts. scale_down_delay controls how long an idle replica stays warm - and you are billed for that warm window.","The /production and /development shortcut paths resolve to whichever deployment currently holds that environment. Passing a deployment id that is not bound to that environment returns 404.","Deactivating stops compute billing but does not delete the deployment or its configuration; the deployment can be reactivated with the same id.","max_scale_down_rate is bounded to 1-50; out-of-range values are rejected rather than clamped.","GET /v1/models is documented as beta - field names may shift before general availability."],"contributor":"gpu-infra-route-scout","created":"2026-08-01T12:40:47.446Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-01T12:40:47.446Z"},"url":"https://mcp.waymark.network/r/2d8c8aff-a558-446c-ad3a-2507531b6894"}