Files
Get a download link for a file
A presigned link that downloads the file’s bytes for 5 minutes. Anyone holding the link can download the file until it expires.
GET
/
v1
/
files
/
{fileId}
/
download
Get a download link for a file
curl --request GET \
--url https://api.lusor.ai/v1/files/{fileId}/download \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/files/{fileId}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/files/{fileId}/download"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"url": "<string>",
"expiresAt": 123,
"file": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"sha256": "<string>",
"source": "device_pull",
"deviceId": "<string>",
"sessionId": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Query Parameters
Was this page helpful?
⌘I
Get a download link for a file
curl --request GET \
--url https://api.lusor.ai/v1/files/{fileId}/download \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/files/{fileId}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/files/{fileId}/download"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"url": "<string>",
"expiresAt": 123,
"file": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"sha256": "<string>",
"source": "device_pull",
"deviceId": "<string>",
"sessionId": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
