Get a named sandbox
Changed onRetrieves a named sandbox by name, including its current sandbox and routes. If the sandbox is stopped and resume is true, a new sandbox will be created from the most recent snapshot. Returns 404 if the named sandbox or its configuration no longer exists.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v2/sandboxes/{name}
- Auth: HTTP bearer
Path parameters
Name for the sandbox. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores).
Query parameters
The project ID or name (required when not using OIDC token).
Whether to automatically resume a stopped named sandbox by creating a new instance from its snapshot. Defaults to false.
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Response
Example response
{
"sandbox": {
"createdAt": 1750344501629,
"cwd": "/vercel/sandbox",
"expiresAt": 1750344801629,
"failoverRegions": [
"sfo1",
"cle1"
],
"image": "my-team/my-project/my-repo@sha256:2c4e8f9a1b3d5e7f091a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708",
"keepLastSnapshots": {
"count": 5,
"deleteEvicted": true,
"expiration": 604800000
},
"memory": 1024,
"name": "my-sandbox",
"persistent": true,
"region": "iad1",
"runtime": "node22",
"snapshotExpiration": 604800000,
"status": "running",
"statusUpdatedAt": 1750344501629,
"tags": {
"team": "hive",
"user": "bob"
},
"timeout": 300000,
"totalActiveCpuDurationMs": 5000,
"totalDurationMs": 60000,
"totalEgressBytes": 4096,
"totalIngressBytes": 2048,
"updatedAt": 1750344501629,
"vcpus": 2
},
"session": {
"abortedAt": 1750344501629,
"activeCpuDurationMs": 42,
"createdAt": 1750344501629,
"cwd": "/vercel/sandbox",
"duration": 3600000,
"id": "sbx_123a6c5209bc3778245d011443644c8d27dc2c50",
"memory": 2048,
"networkPolicy": {
"allowedCIDRs": [
"10.0.0.0/8"
],
"allowedDomains": [
"api.vercel.com",
"*.example.com"
],
"deniedCIDRs": [
"10.0.0.0/8"
],
"injectionRules": [
{
"domain": "api.vercel.com",
"headerNames": [
"Authorization",
"X-API-Key"
]
}
],
"mode": "custom"
},
"networkTransfer": {
"in": 12543852,
"out": 15368
},
"projectId": "prj_123a6c5209bc3778245d011443644c8d27dc2c50",
"region": "iad1",
"requestedAt": 1750344501629,
"requestedStopAt": 1750344501629,
"runtime": "node22",
"snapshottedAt": 1750344501629,
"sourceSandboxName": "my-sandbox",
"sourceSnapshotId": "snap_123a6c5209bc3778245d011443644c8d27dc2c50",
"startedAt": 1750344501629,
"status": "running",
"stoppedAt": 1750344501629,
"timeout": 3600000,
"updatedAt": 1750344501629,
"vcpus": 2
}
}Changes
- info
added the non-success response with the status
- info
- info
added the optional property
///to the response with the status
- info