cURL
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>" }
Generate presigned URL for downloading a file.
The URL is valid for the specified expiry time (default: 1 hour).
Args: file_id: File ID expires_in: URL expiry time in seconds (default: 3600, max: 86400)
Successful Response
Response with presigned download URL.
Presigned URL for downloading the file
URL expiry time in seconds
File ID
Original filename
Was this page helpful?