---
title: "Create Sandbox Upload URL"
method: POST
path: "/v2/sandboxes/{sandbox_id}/upload-urls"
tags: ["Sandboxes"]
---

# Create Sandbox Upload URL

`POST /v2/sandboxes/{sandbox_id}/upload-urls`

## Request

- Base URL: `https://api.duvo.ai`
- URL: `https://api.duvo.ai/v2/sandboxes/{sandbox_id}/upload-urls`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/duvo/apis/duvo-public-api/docs/v2/sandboxes/:sandbox_id/upload-urls/post.ts> (a function with typed inputs; its response is checked against the schema)

Get a presigned URL for uploading a file into a sandbox. Use for files larger than 10MB; smaller files can be uploaded directly via POST /v2/sandboxes/:sandbox_id/files.

## Path parameters

- `sandbox_id` string, required

## Request body

- object
  - `path` string, required: Path where the file will be uploaded (e.g. /workspace/data.csv)

## Response `200`

Default Response

- object
  - `upload_url` string, uri, required: Presigned upload URL
  - `path` string, required: Path the file will be uploaded to
  - `expires_in_seconds` number, required: Seconds until the presigned URL expires

## Other responses

- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/duvo/apis/duvo-public-api.md) - [All operations](https://skmtc.dev/duvo/apis/duvo-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duvo/apis/duvo-public-api/revisions/dafcf3d868a9?raw)
