Diska
API

Realtime

How people talk to an agent in real time, and what in voice sessions is not a public API.

Real-time voice conversations happen on Diska's channels. The DISKA API does not open or control voice sessions, and API keys cannot be used for that: use it to read call results, and receive them by webhook when each call ends.

Voice channels

ChannelWhat forWhere to set it up
PhoneAnswer calls on a DISKA number or on a number of your own connected over SIP.Telephony
Public linkA page with a microphone where anyone can talk to the agent's published version in the browser, without a Diska account.Publish an agent
WidgetThe call button on your website (script or iframe).Embed the widget
Backoffice testTest calls in the browser or to your mobile phone, from the agent.Test an agent

Each agent's number, public link and widget are set up from the agent's Publicação (publishing) button, in the Definições de publicação (publish settings) window.

When an agent's Link público (public link) is active, the Link público tab of Definições de publicação shows, besides the Endereço para partilhar (address to share) and the Token público (public token), the Endpoint de sessão (API) (session endpoint):

https://api.diska.ai/api/v1/public/agents/<public-token>/voice-session

A POST to this address creates an anonymous voice session on the agent's published version. It is what Diska's web player — the public link page and the widget — uses to start each call; the player takes care of the rest (audio, transcription and voice).

  • It only works while the public link is active and the agent has a published version; otherwise it returns 404. It always runs the published version, never the draft.
  • Gerar novo link (generate new link) replaces the token: the old address stops working immediately. Desativar (disable) blocks new calls and keeps the token so you can re-enable it.
  • There are session limits per IP address and per link. Above them, the response is 429 with Demasiadas chamadas de momento. Tente novamente dentro de alguns minutos. ("too many calls right now, try again in a few minutes").
What happens after that POST — the audio connection and the requests the player makes during the call — is not a public contract: it depends on the voice engine and can change without notice. To put the agent on your website or app, use the widget or the public link address.

For Voice Widget agents, the WebSocket tab of Definições de publicação shows the same endpoint, as Canal público (public channel). Under the Sessões em tempo real (real-time sessions) heading, it explains that this is the request that opens the voice conversation. There is no public WebSocket channel for following the session state, transcripts or agent events during a call.

Following calls

There is no public event stream during a call. To get call data:

  • call.completed webhook — when the call ends, Diska sends the transcript and post-call result to your system. See Webhooks.
  • GET /v1/calls/{call_id} — the call's detail, whenever you need it. See Endpoints.
  • Históricos (history) in the backoffice — see Calls.

Platform voice endpoints

The endpoints under https://api.diska.ai/api/v1/realtime/… serve Diska's own applications (the test panel, the widget and the public link). They are authenticated with the backoffice session or with credentials specific to each call, do not accept API keys and are not part of the public API. Do not build integrations on them.

Copyright © 2026