Fetch Credit Report

Retrieve detailed credit usage statistics for a specific task.

Authentication

AuthorizationBearer

Bearer token authentication using JWT tokens from Ory Kratos/Hydra

Path Parameters

org_idstringRequiredformat: "uuid"
The unique identifier of the organization.
project_idstringRequiredformat: "uuid"
The unique identifier of the project.
task_idstringRequiredformat: "uuid"
The specific Task to reference.

Query Parameters

start_datestringOptional

Start date for the report (e.g., ‘2023-06-01’, ‘24 hours ago’, ‘yesterday’).

end_datestringOptional

End date for the report (e.g., ‘2023-06-30’, ‘now’, ‘today’).

show_reporting_groupbooleanOptionalDefaults to false
If true, include reporting group in the report.

Response

Successful Response
task_idstringformat: "uuid"
The unique identifier of the Task.
task_revisionslist of objects
Timing data broken down by task revision, showing performance metrics for each active revision.
total_creditsstringformat: "^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$"
Total credits charged for the Task.
total_task_runsinteger
Total number of task runs for each time interval.
date_rangemap from strings to strings
The time range for the report, with start and end timestamps.

Errors