Skip to main content
A turn is one task you send to an agent. Each turn creates a session, the record of the agent’s work on the phone.

Send it

prompt is required, up to 8,192 characters. The call returns 202 straight away:
Response (202)
sessionId identifies the session. Follow it to see the agent’s progress and result.

What happens next

To withdraw a waiting turn before it starts, see Stop a session. Every turn is recorded on video. See Recordings and replay.

Safe retries

Send an Idempotency-Key header with a value unique to the task, up to 256 characters. If the request times out and you send it again with the same key, Lusor returns the original turn instead of starting a second one. Without the header, every request creates a new turn. You can also send the key as idempotencyKey in the body. The header wins when you send both.

Errors

Sessions without an agent

To give one task to a phone without creating an agent, start a session on the phone directly. You need your workspace id, which is the workspaceId of any agent.
The call returns 202 with the session’s id and status: "queued". Follow it with the same session endpoints. A session without an agent takes more options than a turn: A phone works on one session at a time. If it is busy, this call does not wait: it returns 429 with error: "device_busy" and the currentSessionId of the session holding the phone. Other refusals: