Fetch Task Agent Token Report
Retrieve aggregate reasoning token usage for a specific Task Agent.
This report includes:
- Total input tokens across all agent runs
- Total output tokens across all agent runs
- Combined reasoning token usage
- Number of runs included in the report
Filters:
- `start_date`: Include runs created on or after this date
- `end_date`: Include runs created on or before this date
Date parameters support both absolute and relative formats such as:
- `2024-01-15`
- `now`
- `24 hours ago`
- `yesterday`
Authentication
AuthorizationBearer
Bearer token authentication using JWT tokens from Ory Kratos/Hydra
Path parameters
org_id
The organization ID
project_id
The project ID
task_agent_id
The task agent ID
Query parameters
start_date
Start date for the report (e.g., ‘2023-06-01’, ‘24 hours ago’, ‘yesterday’).
end_date
End date for the report (e.g., ‘2023-06-30’, ‘now’, ‘today’).
Response
Task Agent token report
task_agent_id
Unique identifier of the TaskAgent.
date_range
Time period covered by the report.
total_input_tokens
Total input tokens consumed by agent reasoning during the reporting period.
total_output_tokens
Total output tokens produced by agent reasoning during the reporting period.
total_tokens
Combined total of input and output tokens during the reporting period.
total_runs
Number of TaskAgent runs included in the report.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error
