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

> List Agent Branches

## 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/agents/agent-id/branches?include_archived=false&limit=100&include_commit_status=false' \
  -H "xi-api-key: $ELEVENLABS_API_KEY"

## Parameters
| Name | In | Type | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| agent_id | path | string | Yes | The id of an agent. This is returned... |
| include_archived | query | boolean | No | Whether archived branches should be i... |
| limit | query | integer | No | How many results at most should be re... |

## Response (200 OK)
{"meta":{"total":0,"page":0},"results":[{}]}

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