Skip to main content
Create a sandbox file download

Authorizations

Authorization
string
header
required

BoxRouter API key; never an upstream provider key.

Path Parameters

sandbox_id
string
required

Workspace-owned BoxRouter sandbox ID, not an upstream ID.

Minimum string length: 1
Pattern: ^[^\u0000]*$

Body

application/json
path
string
required

Absolute path of an existing file inside the sandbox.

Minimum string length: 1
Pattern: ^/[^\u0000]*$
inline_below
integer

Optional byte floor, chosen by the caller: when the provider reports the file's size below this value the response's content carries the body inline instead of creating a link. At or above it a link is created as usual — a provider-direct one where the route supports it.

Required range: x >= 0

Response

Created download; content carries the body inline when inline_below admits it, otherwise the link fields do

Download answer: when content is present it carries the file body inline (base64) and no link exists; otherwise url and expires_at give a temporary link that lasts up to one hour after creation. The URL may embed a secret signature, so never log it.

path
string
required
Minimum string length: 1
Pattern: ^/[^\u0000]*$
size
integer | null
required

File size in bytes when the provider reports it; null when it is not known until the download's response. A complete download ends exactly at its response's Content-Length.

Required range: x >= 0
content
string

The file body, base64-encoded, when inline_below admitted it. Absent when a link was created instead.

route
enum<string>

Informational. Which path the bytes take. Clients must not branch on it.

Available options:
direct,
relay
url
string<uri>

Temporary download link; absent when content carries the body.

method
enum<string>
default:GET
Available options:
GET
headers
object
expires_at
string<date-time>

When the link ends; at most one hour after creation. Absent when content carries the body.