Files
List the workspace's files
Files the workspace’s agents saved from its phones, newest first. Read-only.
GET
/
v1
/
files
List the workspace's files
curl --request GET \
--url https://api.lusor.ai/v1/files \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/files"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"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": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Query Parameters
Was this page helpful?
⌘I
List the workspace's files
curl --request GET \
--url https://api.lusor.ai/v1/files \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/files"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"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": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
