GET
/
v1
/
usage
/
character-stats

Headers

xi-api-key
string

Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.

Query Parameters

start_unix
integer
required

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.

end_unix
integer
required

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.

include_workspace_metrics
boolean
default: false

Whether or not to include the statistics of the entire workspace.

breakdown_type
enum<string>
default: none

How to break down the information. Cannot be "user" if include_workspace_metrics is False.

Available options:
none,
voice,
user,
api_keys,
all_api_keys,
product_type,
model

Response

200 - application/json
time
integer[]
required
usage
object
required