CoreWeave sandboxes are in public preview. For access, contact your CoreWeave account team, CoreWeave Support, or email support@coreweave.com.
Base URL and versioning
Sandbox.run(), sb.exec(), file operations). Control plane operations create and configure the infrastructure that produces sandboxes. Data plane operations interact with running sandboxes.
The API is versioned v1. Additive, backward-compatible changes ship within v1. Breaking changes ship behind a new version prefix, and CoreWeave announces them before release.
An earlier v1beta2 surface remains available and is where profile templates and profile bindings live. They are superseded by policy and are not being added to v1. New integrations should target v1.
Authentication
All requests use bearer-token authentication over TLS:SANDBOX_ADMIN: create, update, and delete runners, and set the policy they carry. ImpliesSANDBOX_USER.SANDBOX_USER: read runners and create sandboxes against them.
401 Unauthenticated with a google.rpc.Status-shaped body.
The CoreWeave Intelligent CLI (cwic) wraps these REST endpoints. CLI users authenticate once with cwic auth login, and cwic stores the token in the local cwic config. See Configure a sandbox policy for the CLI workflow.
Content type
All request and response bodies are JSON:curl or fetch-style clients work transparently. You don’t need a gRPC client.
Resource families
The control plane exposes managed runners as its administrative resource:
A policy is not independently addressable. It is a field on the runner, so you read it by fetching the runner and write it with a runner update masked to
policy. Each write replaces the whole document. For the workflow, see Configure a sandbox policy.
Profile templates remain available on the v1beta2 surface at /v1beta2/sandbox/profile-templates, together with the profile_bindings field on a runner. They are superseded by policy, are not part of the v1 model, and will not be added to it.
For the conceptual model and how the gateway brokers runtime requests, see Sandboxes architecture. This page documents the endpoint contract.
Pagination
List endpoints support cursor-based pagination:pageSize: page size. Default50, max100.pageToken: cursor returned asnextPageTokenon the previous page. An empty string means no more pages.
Paginate managed runners
cwic sandbox runner get.
Field masks on updates
Update endpoints accept an optionalupdate_mask. When present, only the fields listed in the mask apply, and the API ignores everything else on the request object. When absent, every non-empty mutable field on the request object applies.
Paths use dotted notation and snake_case field names (standard google.protobuf.FieldMask convention). Commonly used mutable paths:
Supply the mask as a single comma-separated string:
Errors
Errors return an appropriate HTTP status and agoogle.rpc.Status body.
Validation messages are part of the stable surface area. You may surface them directly to end users.
Idempotency
The control plane API has the following idempotency guarantees:Delete*endpoints are idempotent. CallingDELETEon an already-deleted resource returns404without side effects.Create*endpoints aren’t idempotent. Supplying the samerunnerIdordisplayNametwice returns409 Conflict. To retry safely, useGETto check whether the resource already exists.Update*endpoints are safe to retry when you use a field mask and set only the fields you intend to change.
Heartbeats
Runner heartbeats track runner liveness. When the control plane hasn’t received a heartbeat within the liveness window, a runner’sconnectionStatus flips to DISCONNECTED. Expect up to 30 seconds of lag between the runner becoming unreachable and the control plane reflecting it. You can read both connectionStatus and the related installStatus field from a runner Get response.
See also
- Sandboxes architecture: the four-resource taxonomy and how the gateway brokers runtime requests.
- Policies overview: how a sandbox resolves against a policy.
- Configure a sandbox policy: CoreWeave Intelligent CLI workflow plus field-by-field walkthrough of the profile spec.
- Deploy and manage a runner: CoreWeave Intelligent CLI and REST walkthrough of the runner lifecycle.
- Policy reference: every field you can set on a profile.