Fetch a Task Run
Retrieve detailed information about a specific task run.
Task runs provide a complete record of task executions, including:
- Input parameters and configuration used
- Execution status and timing information
- Resource usage metrics (e.g., tokens consumed, credits charged)
- Structured output and processing metadata
- Error information if the run failed
- Fallback model information if the primary model failed
Fallback Model Information:
- `used_fallback_model`: Boolean indicating if fallback model was used
- `primary_failure_reason`: Reason why the primary model failed (if applicable)
- `fallback_llm_model_id`: ID of the fallback model used (if applicable)
This endpoint is useful for:
- Monitoring task execution progress
- Debugging failed runs and understanding failover behavior
- Auditing task usage and performance
- Retrieving task results
- Analyzing reliability and fallback model usage
Errors:
- Returns 400 if the task run ID is not a valid UUID format
- Returns 422 if the request body fails validation
- Returns 404 if the task run is not found
- Returns 403 if the user lacks permission to access the task run
Authentication
AuthorizationBearer
Bearer token authentication using JWT tokens from Ory Kratos/Hydra
Path Parameters
org_id
The unique identifier of the organization.
project_id
The unique identifier of the project.
task_id
The specific Task to reference.
task_run_id
The specific Task Run to reference.
Response
Successfully retrieved task run information
task_id
The unique identifier of the Task associated with this run.
task_revision_id
The unique identifier of the Task Revision associated with this run.
response
The structured response from the Task execution.
run_data
Additional data about the Task execution, including submitted inputs and processed files.
id
The unique identifier of the Task Run.
created
The timestamp when the Task Run was created.
input_tokens
The number of tokens submit as input to the model.
output_tokens
The number of tokens generated and output by the model.
total_tokens
The total token usage for the TaskRun.
input_processor_timing
The execution time for the TaskRun in seconds.
llm_call_timing
The execution time for the TaskRun in seconds.
charged_credits
The total credits charged for the TaskRun.
is_error
llm_retries
Number of retry attempts made during LLM execution.
used_fallback_model
Whether the fallback model was used
primary_failure_reason
Reason the primary model failed
fallback_llm_model_id
Fallback model that was used
user_id
The unique identifier of the User who executed the task.
reporting_group_id
The ID of the reporting group to associate with this task run
reporting_group
The reporting group associated with this task run
