Get task
Tasks
Get task
Fetch a single task record. Poll this to track pending tasks to completion.
GET
Get task
Path parameters
The task identifier returned by
POST /v1/tasks.Response — 200 OK
Task identifier.
The session this task belongs to.
The end-user the task ran for.
The prompt as originally submitted.
"pending" | "running" | "completed" | "failed" | "cancelled".The final answer. String for most tasks; JSON object for tasks that return structured data or when
schema was provided.Only present when the request included
schema. The object conforming to that schema.Only present when the request had
include_html_dump: true. Raw HTML of the final page.Number of agent steps executed.
Wall-clock duration of the task in milliseconds.
Domains the agent navigated to, deduplicated in order.
Per-step trace:
{ n, type, msg, success }.Populated only when
status == "failed".When the task was submitted.
Last status change.
Additional internal fields may be present on the response for observability and may change without notice. Rely only on the fields documented above.
Example
Polling pattern
Both SDKs’tasks.run(...) wrap submit + poll in one call. If you’re polling yourself:
Errors
| Code | Meaning |
|---|---|
401 | Missing Authorization header |
403 | Task belongs to another business |
404 | Unknown taskId |
