Devices
Read one page of every run on a phone, from every source
Same paging and turn shape as GET /v1/agents/{id}/turns. agentId is set
for an agent’s runs and null otherwise; source says what started each run.
GET
/
v1
/
workspaces
/
{workspaceId}
/
devices
/
{deviceId}
/
activity
Read one page of every run on a phone, from every source
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/activity \
--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/{deviceId}/activity', 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/{deviceId}/activity"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"turns": [
{
"id": "<string>",
"sessionId": "<string>",
"prompt": "<string>",
"status": "<string>",
"deviceId": "<string>",
"summary": "<string>",
"recording": true,
"queued": true,
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": {
"threadId": "<string>",
"kind": "app",
"label": "<string>",
"appId": "claude",
"keyId": "<string>"
}
}
],
"nextCursor": "<string>",
"hasMore": true
}
}{
"error": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Path Parameters
Query Parameters
Was this page helpful?
⌘I
Read one page of every run on a phone, from every source
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/activity \
--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/{deviceId}/activity', 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/{deviceId}/activity"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"turns": [
{
"id": "<string>",
"sessionId": "<string>",
"prompt": "<string>",
"status": "<string>",
"deviceId": "<string>",
"summary": "<string>",
"recording": true,
"queued": true,
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": {
"threadId": "<string>",
"kind": "app",
"label": "<string>",
"appId": "claude",
"keyId": "<string>"
}
}
],
"nextCursor": "<string>",
"hasMore": true
}
}{
"error": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
