Fetch Usage Report
Retrieve usage statistics for task executions.
This endpoint provides detailed usage data about task runs, including:
- Number of executions over time
- Success and failure rates
- Usage patterns by time period
- Aggregated metrics by day or week
Use this data to:
1. Monitor task usage patterns
2. Track execution success rates
3. Analyze usage trends
4. Plan capacity and scaling
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.
Query parameters
aggregation
The aggregation level for the report. Can be either 'day' or 'week'.
Allowed values:
errors_only
If true, only include invocations with errors in the report.
Response
Usage report retrieved successfully
task_id
The unique identifier of the Task.
date_range
The time range for the report, with start and end timestamps.
aggregation
The time interval for data aggregation. 'day' shows last 24 hours in hourly blocks, 'week' shows last 7 days in daily blocks.
Allowed values:
task_revisions
Usage data broken down by task revision, showing invocation counts for each active revision.
total_counts
Total number of task invocations for each time interval across all revisions.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error
