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

> Get Conversation Users

## 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/convai/users?agent_id=agent-id&branch_id=branch-id&call_start_before_unix=10&call_start_after_unix=10&search=example-search&page_size=30&sort_by=last_contact_unix_secs&sort_direction=asc&cursor=example-cursor' \
  -H "xi-api-key: $ELEVENLABS_API_KEY"

## Parameters
| Name | In | Type | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| agent_id | query | string | No | Agent id (agent_…) or speech engine external id (seng_),... |
| branch_id | query | string | No | Filter conversations by branch ID. |
| call_start_before_unix | query | integer | No | Unix timestamp (in seconds) to filter conversations up to... |
| call_start_after_unix | query | integer | No | Unix timestamp (in seconds) to filter conversations after... |

## Response (200 OK)
{"users":[{}],"next_cursor":"string"}

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