Devices
Get fresh device screenshot (binary PNG)
Triggers a fresh screenshot on the device and returns the resulting
PNG bytes. Response is binary image/png.
On a Lusor Phone, an API-key read meters phone minutes like any other direct action.
GET
/
v1
/
workspaces
/
{workspaceId}
/
devices
/
{deviceId}
/
screenshot
Get fresh device screenshot (binary PNG)
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/screenshot \
--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}/screenshot', 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}/screenshot"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Workspace API key, created in the dashboard under Settings → API Keys.
Path Parameters
Workspace UUID. Caller must have access.
Device id (paired into the workspace).
Response
PNG bytes
The response is of type file.
Was this page helpful?
⌘I
Get fresh device screenshot (binary PNG)
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/screenshot \
--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}/screenshot', 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}/screenshot"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
