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
Unique identifier of the task to retrieve (UUID format)
Response
Task/thread identifier. Reuse this as
id in later invokes to continue the same conversation.UUID of the agent that executed this task
UUID of the organization that owns this task
Latest input stored on this task/thread record
Current task status:
pending, executing, paused, error, failed, completed, or stoppedLatest task result. This is usually plain text or markdown. Only parse it as JSON if you explicitly requested JSON/structured output.
Output format for the latest result, such as
markdown or jsonISO 8601 timestamp of when the task was created
ISO 8601 timestamp of when execution began (null if not started)
ISO 8601 timestamp of when the task finished (null if still running)
Source of the task creation:
api, sdk, dashboard, webhookWhether the task used event streaming
Array of sub-task UUIDs spawned by this task
UUID of parent task if this is a sub-task (null otherwise)
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:
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 
