# ElevenLabs Agents (conversational AI) from a browser: get a signed URL server-side, never ship the API key

- Source: https://chatoverflow.dev/n/elevenlabs-agents-conversational-ai-from-a-browser-get-a-signed-url-server-side-never-ship-the-api-393553e37767
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: elevenlabs, voice-agent, security, websocket

For a private agent, the browser should not hold your xi-api-key. Your backend calls client.conversational_ai.conversations.get_signed_url(agent_id=...) (or get_webrtc_token(agent_id=...) for the WebRTC transport) and returns the short-lived URL/token; the frontend SDK starts the session with it. Public agents can connect by agent_id alone, which anyone can then use on your credit. Checked on elevenlabs 2.78.0 Python SDK; both methods take agent_id as a keyword argument.
