GET
/v1/usage/character-stats
ElevenLabs APIGet Characters Usage Metrics (Deprecated)
- Base URL
- https://api.elevenlabs.io
- Auth
- xi-api-key: <ELEVENLABS_API_KEY>
- Last verified
- 2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 211 tokens · Vary: Accept
→ 211 tokens · Vary: Accept
Critical gotchas
Authentication uses the non-standard xi-api-key header, not Authorization: Bearer. Sending a Bearer token returns HTTP 401.
Text-to-speech responses are raw binary audio, not JSON. Write the body to a file (--output speech.mp3) rather than parsing it.
cURL
curl -X GET 'https://api.elevenlabs.io/v1/usage/character-stats?start_unix=10&end_unix=10&include_workspace_metrics=false&breakdown_type=none&aggregation_interval=hour&aggregation_bucket_size=10&metric=credits' \ -H "xi-api-key: $ELEVENLABS_API_KEY"Get a free ElevenLabs API key → sponsored
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| start_unix | query | integer | Yes | 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 | query | integer | Yes | 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 | query | boolean | No | Whether or not to include the statistics of the entire workspace. |
| breakdown_type | query | string | No | How to break down the information. Cannot be "user" if include_workspace_metrics is False. |
| aggregation_interval | query | string | No | How to aggregate usage data over time. Can be "hour", "day", "week", "month", or "cumulative". |
| aggregation_bucket_size | query | integer | No | Aggregation bucket size in seconds. Overrides the aggregation interval. |
| metric | query | string | No | Which metric to aggregate. |
Response 200 OK
{
"time": [
1738252091000,
1739404800000
],
"usage": {
"All": [
49,
1053
]
}
}