---
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`

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.net/outcallerai/apis/fastapi.md) · [All operations](https://skmtc.net/outcallerai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/outcallerai/fastapi/revisions/2a1adc380310/schema)
