Devices
List devices in a workspace
GET
/
v1
/
workspaces
/
{workspaceId}
/
devices
List devices in a workspace
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/devices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/devices"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"name": "<string>",
"tier": "cloud_managed",
"planId": "personal",
"pairedAt": "2023-11-07T05:31:56Z",
"connected": true,
"platform": "<string>",
"androidVersion": "<string>",
"apiLevel": 123,
"appVersion": "<string>",
"connectedAt": 123,
"lastSeen": 123
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?
⌘I
List devices in a workspace
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/devices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/devices"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"name": "<string>",
"tier": "cloud_managed",
"planId": "personal",
"pairedAt": "2023-11-07T05:31:56Z",
"connected": true,
"platform": "<string>",
"androidVersion": "<string>",
"apiLevel": 123,
"appVersion": "<string>",
"connectedAt": 123,
"lastSeen": 123
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
