Get character usage metrics
Returns the usage metrics for the current user or the entire workspace they are part of. The response provides a time axis based on the specified aggregation interval (default: day), with usage values for each interval along that axis. Usage is broken down by the selected breakdown type. For example, breakdown type “voice” will return the usage of each voice for each interval along the time axis.
Headers
Query parameters
UTC Unix timestamp for the start of the usage window, in milliseconds. To include the first day of the window, the timestamp should be at 00:00:00 of that day.
UTC Unix timestamp for the end of the usage window, in milliseconds. To include the last day of the window, the timestamp should be at 23:59:59 of that day.
Whether or not to include the statistics of the entire workspace.
How to break down the information. Cannot be “user” if include_workspace_metrics is False.
How to aggregate usage data over time. Can be “hour”, “day”, “week”, “month”, or “cumulative”.
Which metric to aggregate.
Response
Successful Response
The time axis with unix timestamps for each day.
The usage of each breakdown type along the time axis.