Diska
API

Realtime

WebSocket and REST endpoints for real-time voice calls.

The realtime endpoints create voice sessions using the OpenAI Realtime API (WebRTC) and conversational flows.

REST endpoints

Prefix: /api/v1/realtime

MethodPathDescription
POST/sessionsCreates a realtime session for the browser demo.
POST/sessions/endEnds a session.
POST/tools/executeExecutes a tool during the call.
POST/flow/sessionsCreates a flow-driven session.
POST/flow/advanceAdvances a flow-driven session.
GET/flow/sessions/{session_id}/stateSession state.
POST/flow/sessions/{session_id}/endEnds a flow-driven session.
POST/bookingsCreates a demo booking.
POST/debug-logsWrites a debug log (local only).
POST/ttsStreams TTS audio.

WebSocket

PathDescription
/api/v1/realtime/tts/wsContinuous TTS streaming.

Authentication

Realtime endpoints accept the backoffice session or a public session credential issued when the call is created. For browser calls the session is created by the backoffice and returns session_id and the credential.

Tools during a call

The /tools/execute endpoint allows the model to invoke functions configured on the agent (e.g., transfer, booking, SMS). The request includes session_id, tool_name and arguments.

Copyright © 2026