v3
Drive

Get a signed URL for uploading a file to Definite Drive

Generate a signed URL for directly uploading a file to Definite Drive (GCS).

The file will be accessible in E2B sandboxes at `/home/user/drive/{file_name}`
via the gcsfuse mount. Files persist across sessions and are shared with all
team members.
post/v3/teams/{team_id}/drive/upload-url

Path parameters

team_idstring required

Request body

file_namestring required

Name of the file to upload

folderstring nullable

Optional folder path to upload to (e.g., 'reports/2024')

Response

Signed URL generated successfully

upload_urlstring required

Signed PUT URL for direct upload to GCS

http_methodstring

HTTP method to use with upload_url

headersobject

Headers that the client MUST send with the upload request. Includes Content-Type and, for temporary uploads, X-Goog-Custom-Time.

gcs_pathstring required

Full GCS path where the file will be stored

drive_pathstring required

Path in sandbox where the file will be accessible: /home/user/drive/{file_name}

expires_atstring date-time nullable

When the file will be auto-deleted. Only set for temporary uploads.

Changes

No recorded changes to this endpoint across all 1 revision of this API.