Skip to content
Docs

List snapshots

GEThttps://api.vercel.com/v2/sandboxes/snapshots
Retrieves a paginated list of snapshots for a specific project.
https://api.vercel.com/v2/sandboxes/snapshots
const response = await fetch('https://api.vercel.com/v2/sandboxes/snapshots?project=string&name=string&limit=123&cursor=string&sortOrder=string&teamId=string&slug=string', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
Response
"value"
AuthorizationbearerToken

Default authentication mechanism

projectstringOptional
The unique identifier or name of the project to list snapshots for.
namestringOptional
Name for the sandbox. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores).
limitnumberOptional
Maximum number of snapshots to return in the response. Used for pagination.
cursorstringOptional
Opaque pagination cursor from a previous response.
sortOrderstringOptional
Sort direction for results by creation time.
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Success
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
404Error
410Error
429Error