# GET /v1/usage/character-stats (ElevenLabs API)
Base URL: https://api.elevenlabs.io
Auth: xi-api-key: <ELEVENLABS_API_KEY>
Last verified: 2026-09-03

> Get Characters Usage Metrics (Deprecated)

## 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"

## Parameters
| Name | In | Type | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| start_unix | query | integer | Yes | UTC Unix timestamp for the start of t... |
| end_unix | query | integer | Yes | UTC Unix timestamp for the end of the... |
| include_workspace_metrics | query | boolean | No | Whether or not to include the statist... |

## Response (200 OK)
{"time":[1738252091000,1739404800000],"usage":{"All":[49,1053]}}

---
Need an API key? Get one at https://elevenlabs.io/app/sign-up