Fetch Token Report

GA
GET

Fetch the token usage report for a Task.

Path parameters

org_idstringRequired

The unique identifier of the organization.

project_idstringRequired

The unique identifier of the project.

task_idstringRequired

The specific Task to reference.

Query parameters

end_datestringOptional

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

start_datestringOptional

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

Response

This endpoint returns an object.
task_idstring
date_rangemap from strings to any
total_input_tokensinteger
total_output_tokensinteger
total_tokensinteger
total_task_runsinteger
task_revisionslist of objects