Skip to main content
POST
Read one screen of an app

Authorizations

X-Api-Key
string
header
required

Workspace API key, created in the dashboard under Settings → API Keys.

Headers

Idempotency-Key
string

Caller-provided key for safe retries. The same key in the same workspace yields the same run id, and a duplicate POST within the retention window returns the original run instead of starting a second one.

Maximum string length: 256

Body

application/json
url
string
required

The screen's address: app://<app>/<path>, the host a Lusor app name (settings) or a raw package / bundle id (com.apple.Preferences), the path each screen's name in lowercase with dashes (app://settings/general/about). Only app:// addresses are followed today: any other address, a deep link or a web link included, is a 400 bad_request.

Maximum string length: 2048
formats
enum<string> · object · object[]

What to return. Defaults to ["markdown"]. Supported in this step: markdown, screenshot (or {type: "screenshot", fullPage: true}), and {type: "json", schema}; anything else is a 400 unsupported_format.

Maximum array length: 16
Available options:
markdown,
screenshot
maxScreens
integer

The most screens to read. After reaching the address, scrape scrolls the page to its end and returns all of it; this caps how far. Defaults to 10. 1 reads only the screen the address reaches. A page that does not scroll is one screen.

Required range: 1 <= x <= 50
device
string

The id of the phone to run on. Pass it when the workspace has more than one phone.

Maximum string length: 512
workspaceId
string<uuid>

Workspace scope for a credential that can reach several. A workspace-bound API key may omit it.

expiresIn
integer

Shortens the viewer link's life, in seconds (it is capped at six hours). The run's own end always shortens it further, so this only ever makes a link expire sooner. A viewer link is a credential: hand out the shortest one that does the job.

Required range: x >= 30

Response

Task accepted

id
string
required

The task id, which is also the id of its session.

liveViewUrl
string

A link to watch the phone while the scrape drives it, with no Lusor login: a bare player page you can embed in an iframe. Watch-only: its stream carries video only and the server refuses input for it. Omitted when the run is not recording or the phone cannot serve it.