Get Task
REST API - Tasks
Get Task
Retrieve detailed information about a specific task by its unique identifier
GET
Get Task
Get complete details about a task/thread record including its current status, latest input, latest result, and execution timing. This endpoint is essential for polling async tasks and for inspecting the latest turn of a continued conversation.
Only use
Path Parameters
string
required
Unique identifier of the task to retrieve (UUID format)
Response
string
Task/thread identifier. Reuse this as
id in later invokes to continue the same conversation.string
UUID of the agent that executed this task
string
UUID of the organization that owns this task
object
Latest input stored on this task/thread record
string
Current task status:
pending, executing, paused, error, failed, completed, or stoppedstring
Latest task result. This is usually plain text or markdown. Only parse it as JSON if you explicitly requested JSON/structured output.
string
Output format for the latest result, such as
markdown or jsonstring
ISO 8601 timestamp of when the task was created
string
ISO 8601 timestamp of when execution began (null if not started)
string
ISO 8601 timestamp of when the task finished (null if still running)
string
Source of the task creation:
api, sdk, dashboard, webhookboolean
Whether the task used event streaming
array
Array of sub-task UUIDs spawned by this task
string
UUID of parent task if this is a sub-task (null otherwise)
object
Additional metadata (nullable)
In a multi-turn conversation, this endpoint shows the latest input and latest result for the reused task/thread ID. Use Get Task Thread or Get Task Thread (Full) for the full message history.
Example Request
Example Response
Extracting Results
For normal text or markdown responses:fromjson when you explicitly requested JSON output:
Status Polling Pattern
For async workflows, poll untilstatus is no longer pending or executing:
Use Cases
- Retrieve task results - Get final output after async execution
- Check execution status - Monitor if task is still executing
- Track timing - See
created_at,started_at,finished_atfor performance analysis - Get latest-turn details - Review the most recent input and output for a continued conversation
Authorizations
API Key for authentication
Path Parameters
Response
Successful Response
Available options:
pending, executing, paused, error, failed, completed, stopped Model representing human-in-the-loop approval records for tasks.
Attributes: wait_node_id (str): The id of the node that triggered this HITL.
Available options:
sync, async, auto Available options:
text, markdown, json, voice Available options:
default, harder Snapshot of the LLM provider used for this execution (request override or agent default at run time).
Snapshot of the LLM model name used for this execution (request override or agent default at run time).
Snapshot of the reasoning effort applied during this execution, when supported by the model.
Available options:
low, medium, high, xhigh 
