---
title: "Get Gemini Websocket Proxy Url"
method: POST
path: "/api/public/echo/voice/gemini-ws"
tags: ["echo"]
---

# Get Gemini Websocket Proxy Url

`POST /api/public/echo/voice/gemini-ws`

## Request

- Base URL: `https://api.outcallerai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outcallerai.com/api/public/echo/voice/gemini-ws`
- Auth: none declared

Get the proxy WebSocket URL for Gemini voice calls.

Returns a proxy URL that the frontend connects to. The backend handles
the actual Gemini API connection, keeping the API key secure.

## Request body

- GeminiWebSocketRequest: Request for Gemini WebSocket URL.
  - `session_id` string, required
  - `workspace_id` string, required

## Response `200`

Successful Response

- GeminiWebSocketResponse: Response containing Gemini WebSocket URL.
  - `ws_url` string, required
  - `session_id` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/outcallerai/apis/outcallerai-api.md) - [All operations](https://skmtc.dev/outcallerai/apis/outcallerai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/outcallerai/apis/outcallerai-api/revisions/40736cf433b4?raw)
