docs
UAEN
API Reference

Get File Download Url

Get a temporary download URL for a file.

GET/api/v1/files/{file_id}/download

Authorizations

X-API-Keystringheaderrequired
Your API key for authentication

Path Parameters

file_idintegerpathrequired
File ID

Cookies

wos-sessionstringcookie
Session cookie
access_tokenstringcookie
Access token cookie
datalab_active_teamstringcookie
Active team cookie

Response

Successful Response
Get File Download Url
import requests

url = "https://www.datalab.to/api/v1/files/{file_id}/download"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)
200Success
{"download_url": "https://storage.datalab.to/...", "expires_in": 3600}