Skip to main content
POST
Get a direct download URL

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Machine ID (e.g. mch_a1b2c3d4)

Body

application/json
path
string
required

Machine path to target. Absolute paths may target valid machine locations such as /workspace, /data, /tmp, or /context where present. Relative paths resolve from the machine cwd when set, otherwise from the selected user's home when user is provided, otherwise from /workspace.

user
string

Optional machine user for relative-path resolution and ownership.

Response

200 - application/json

Direct download URL

url
string
required

A machine-scoped URL for direct download with a short-lived file transfer token.