v3
Drive
Get a signed URL for uploading a file to Definite Drive (API)
Generate a signed URL for directly uploading a file to Definite Drive (GCS).
Authenticate with your API key in the Authorization header:
`Authorization: Bearer <your-api-key>`
The file will be accessible in E2B sandboxes at `/home/user/drive/{path}`
via the gcsfuse mount. Files persist across sessions and are shared with all
team members.
**Example:**
```
POST /v3/drive/upload-url
Authorization: Bearer def-xxxx-your-api-key
Content-Type: application/json
{"path": "data/reports/q4-2024.csv"}
```
post/v3/drive/upload-url
Request
- Base URLhttps://api.definite.app (the document declares no server; this is the origin it was published from)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Signed URL generated successfully
Changes
No recorded changes to this operation across all 2 revisions of this API.