List an app's known screens
Lists the screens of an app that are already known, as app://
addresses scrape can follow, the way Firecrawl’s map lists a
site’s pages. It answers at once: it reads what this workspace’s
runs recorded (every scrape and agent run records the screens it
passes through) plus the base map Lusor ships, and it never opens
the app or walks a phone.
A recorded map is per platform, because the names on screen are:
the named device’s platform, otherwise the platform every phone
of the workspace shares, otherwise both. Each address is the
shortest recorded chain of tapped row names from the app’s first
screen. The list is never claimed to be complete; coverage says
where each link came from and checkedAt when a run last read the
app. An app no run has passed through answers an empty links and
a message saying why.
Each answered call is charged, an empty list included. A call
refused or failed (any 4xx or 5xx) is not charged, and an
Idempotency-Key repeat answers the first response without a
second charge. A refused or failed call does not use up its key.
curl --request POST \
--url https://api.lusor.ai/v1/map \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"url": "app://settings",
"search": "<string>",
"limit": 5000,
"device": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'app://settings',
search: '<string>',
limit: 5000,
device: '<string>',
workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.lusor.ai/v1/map', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/map"
payload = {
"url": "app://settings",
"search": "<string>",
"limit": 5000,
"device": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"links": [
{
"url": "app://settings/general/about",
"title": "<string>"
}
],
"coverage": {
"recorded": 123,
"base": 123
},
"checkedAt": "2023-11-07T05:31:56Z",
"message": "<string>"
}{
"error": "device_required",
"message": "<string>",
"devices": [
"<string>"
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
Headers
Makes a retry of this map safe from a second charge. Send a fresh key (for example a UUID) per call and the same key when you retry it.
- The first answered request with a key is charged and its result is kept for 24 hours.
- A repeat with the same key and the same request returns that
result unchanged, without reading or charging again, with the
header
Idempotent-Replayed: true. - A refused or failed request (validation, access,
402 credits_exhausted,503 map_timeout) is not charged and does not use up the key: a retry with it runs. - A repeat while the first is still running returns
409 idempotency_key_in_use; if the first never finished,409 idempotency_outcome_unknown(it is not run again: use a new key). - The same key with a different request (path, query or body)
returns
422 idempotency_key_reused. - A key that is not 1 to 255 visible ASCII characters returns
400 invalid_idempotency_key. Without the header, or with an empty one, nothing is deduplicated and every answered call is charged.
Keys are scoped to the workspace and the operation. If the key
cannot be recorded nothing runs and the response is 503 idempotency_unavailable.
1 - 255^[\x21-\x7E]+$Body
Response
The app's known screens
Was this page helpful?
curl --request POST \
--url https://api.lusor.ai/v1/map \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"url": "app://settings",
"search": "<string>",
"limit": 5000,
"device": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'app://settings',
search: '<string>',
limit: 5000,
device: '<string>',
workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.lusor.ai/v1/map', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/map"
payload = {
"url": "app://settings",
"search": "<string>",
"limit": 5000,
"device": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"links": [
{
"url": "app://settings/general/about",
"title": "<string>"
}
],
"coverage": {
"recorded": 123,
"base": 123
},
"checkedAt": "2023-11-07T05:31:56Z",
"message": "<string>"
}{
"error": "device_required",
"message": "<string>",
"devices": [
"<string>"
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
