API Reference
Get File Download Url
Get a temporary download URL for a file.
Authorizations
X-API-KeystringheaderrequiredYour API key for authentication
Path Parameters
file_idintegerpathrequiredFile ID
Cookies
wos-sessionstringcookieSession cookie
access_tokenstringcookieAccess token cookie
datalab_active_teamstringcookieActive 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}