Skip to main content
GET
/
api
/
v1
/
files
/
{file_id}
/
download
Get File Download Url
curl --request GET \
  --url https://www.datalab.to/api/v1/files/{file_id}/download \
  --header 'X-API-Key: <api-key>'
{
  "download_url": "<string>",
  "expires_in": 123,
  "file_id": 123,
  "original_filename": "<string>"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

file_id
integer
required

Query Parameters

expires_in
integer
default:3600

Cookies

access_token
string

Response

Successful Response

Response with presigned download URL.

download_url
string
required

Presigned URL for downloading the file

expires_in
integer
required

URL expiry time in seconds

file_id
integer
required

File ID

original_filename
string
required

Original filename