Skip to main content
GET
Get a task's status and result

Authorizations

X-Api-Key
string
header
required

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

Path Parameters

id
string
required

The task id returned by POST /v1/agent.

Query Parameters

workspaceId
string<uuid>

Workspace the request is scoped to. Optional for API keys: a key is bound to one workspace when it is created, and naming any other workspace returns an opaque 404.

expiresIn
integer

Shortens the viewer link in this response, in seconds (capped at six hours). The task's own end still wins, so this only ever makes it expire sooner.

Required range: x >= 30

Response

The task's status and result

success
boolean
required

False once the task failed or was cancelled.

status
enum<string>
required
Available options:
processing,
awaiting_human,
completed,
failed,
cancelled
expiresAt
string<date-time> | null
required

When the task's answer leaves the workspace's history window. Null when the plan keeps history without a limit.

recordingUrl
string
required

The run's recording, as an absolute URL. Fetch it with the same API key for signed video segments.

error
string | null
required

Why the run failed, when it did. Agent reached max credits when it stopped at its maxCredits.

data
any

The task's final answer: the object the task's schema describes when it was started with one, otherwise the answer as text. Present once the task produced an answer.

metadata
object

Present once a task that waited for its phone has started: the phone was running another task, so this one queued.

liveViewUrl
string

A watch-only link to this run's phone: it plays the run's own live view, relayed by the Lusor server, with no phone-side session. Input is refused server-side. Present while the run is live and recording; absent once it ended, and on a phone or a server that cannot serve one.

stopReason
enum<string>

Why a failed run stopped early: credit_limit_reached when it reached its maxCredits. Present only then.

Available options:
credit_limit_reached
creditsUsed
integer

Credits the task has been charged so far, every interact turn on it included. Charges are written when a run ends, so a running task reads less than it will cost. Lusor cloud phone minutes are billed apart and are not in it.