Skip to main content
POST
/
api
/
sandboxes
/
{id}
/
files
/
download-url
Generate Download URL
curl --request POST \
  --url https://app.opencomputer.dev/api/sandboxes/{id}/files/download-url \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "path": "<string>",
  "expiresIn": 123
}
'
{
  "url": "https://app.opencomputer.dev/api/sandboxes/sb-xxx/files/download?path=%2Fapp%2Foutput.zip&expires=1773906434&signature=abc123",
  "expiresAt": "2025-01-01T01:00:00Z"
}
Generates a signed URL for downloading a file without an API key. See Signed URLs for usage guide.
id
string
required
Sandbox ID
path
string
required
Absolute path to the file
expiresIn
number
default:"3600"
URL lifetime in seconds (max: 86400)
{
  "url": "https://app.opencomputer.dev/api/sandboxes/sb-xxx/files/download?path=%2Fapp%2Foutput.zip&expires=1773906434&signature=abc123",
  "expiresAt": "2025-01-01T01:00:00Z"
}