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

> List Generated Items

## 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/history?page_size=100&start_after_history_item_id=start-after-history-item-id&voice_id=voice-id&model_id=model-id&date_before_unix=10&date_after_unix=10&sort_direction=desc&search=example-search&source=TTS' \
  -H "xi-api-key: $ELEVENLABS_API_KEY"

## Parameters
| Name | In | Type | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| page_size | query | integer | No | How many history items to return at m... |
| start_after_history_item_id | query | string | No | After which ID to start fetching, use... |
| voice_id | query | string | No | Voice ID to be filtered for, you can... |

## Response (200 OK)
{"has_more":true,"history":[{}]}

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