Get Workplan Usage History
View the tokens consumed to by a workplan to generate reports starting from a specified date.
This endpoint returns the token usage of a workplan by day, along with the number of reports_created that day and returns the total reports_created and total_tokens_used for the workplan during that timeframe.
Authentication
x-api-keystring
Enter your API key here.
Path parameters
workplan_id
from_date
Response
Successful Response
workplan_id
The workplan id of the workplan requested/
usage_history
A list of entries representing the number of runs and token usage for that time period/
reports_created
A number that represents the total number of reports created by the workplan between requested start/end dates.
total_tokens_used
A number that represents the total number of tokens used by the workplan between requested start/end dates.
