Fetch Task Agent Credit Report
Retrieve aggregate credit usage for a specific Task Agent.
This report includes:
- Total credits charged across all Task Agent runs
- 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
Credit reports are limited to a maximum 3-month lookback window. If `start_date`
is omitted, the report defaults to the earliest permitted date.
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 credit report
task_agent_id
Unique identifier of the TaskAgent.
date_range
Time period covered by the report.
total_credits
Total credits charged across TaskAgent runs in 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
