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

> Get Signed Url

## 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/conversation/get_signed_url?agent_id=agent-id&include_conversation_id=false&branch_id=branch-id&environment=example-environment&debug_events_request=false' \
  -H "xi-api-key: $ELEVENLABS_API_KEY"

## Parameters
| Name | In | Type | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| agent_id | query | string | Yes | Agent id (agent_…) or speech engine external id (seng_),... |
| include_conversation_id | query | boolean | No | Whether to include a conversation_id with the response. I... |
| branch_id | query | string | No | The ID of the branch to use |
| environment | query | string | No | The environment to use for resolving environment variable... |

## Response (200 OK)
{"signed_url":"string"}

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