List sessions
Changed onRetrieves a paginated list of sessions belonging to a specific sandbox. Results are sorted by creation time and paginated using an opaque cursor.
Request
- Base URLhttps://api.vercel.com
- URLhttps://api.vercel.com/v2/sandboxes/sessions
- AuthHTTP bearer
Query parameters
The unique identifier or name of the project to list sessions for.
Filter sessions by sandbox name. Only sessions belonging to the specified sandbox are returned.
Maximum number of sessions to return in the response. Used for pagination.
Opaque pagination cursor from a previous response.
Sort direction for results by creation time.
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Response
The list of sessions matching the request filters.
Example response
{
"sessions": [
{
"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
- warning
removed the optional property
///from the response with the status - info
added the optional property
///to the response with the status
- warning
- info
added the non-success response with the status
- info