Get a drive
GET
/__remote/api.vercel.com/v2/sandboxes/drives/{nameOrId}Gets an existing drive by project and name or drive ID. Returns 404 if doesn't exist.
/__remote/api.vercel.com/v2/sandboxes/drives/{nameOrId}
const response = await fetch('/__remote/api.vercel.com/v2/sandboxes/drives/nameOrId?projectId=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
{ "drive": { "createdAt": "1750344501629", "currentSandboxName": "my-sandbox", "currentSessionId": "sbx_123", "id": "drive_abc123", "maxSizeBytes": "1099511627776", "name": "workspace", "parentDriveId": "example_id", "projectId": "prj_abc123", "region": "iad1", "rootDriveId": "example_id", "updatedAt": "1750344501629", "workloadType": "sandbox" }}AuthorizationbearerToken
Default authentication mechanism