BormintoDevelopers Documentation
docs.borminto.com

Live calls

Talk in real time. Your server asks for a one-time ticket; your app opens a WebSocket or WebRTC connection with it and streams the microphone.

POST https://borminto.com/api/v1/voice/conversations/{conversation}/connect
  1. Get a ticket

    Send transport: websocket or webrtc. The ticket works once, for 45 seconds, and the response gives the path to open.

  2. Connect

    WebSocket: open the path with the subprotocols borminto.voice.v1 and the ticket. WebRTC: post your SDP offer to the path with the ticket as a Bearer token, then open the borminto.voice.v1 data channel.

  3. Talk

    After connection.ready, send mono 16 kHz PCM16. A question is sent after about one second of silence; send speech_pause_ms: 3200 for longer pauses.

  4. End

    DELETE /api/v1/voice/conversations/{conversation}/connection. POST …/stop stops the current reply.

Connect fields

transportstring · required
websocket or webrtc.
greetingstring · optional
Up to 300 characters, spoken once after connection.ready.
speech_pause_msinteger · optional
950 or 3200.
settings, metadataobject · optional
Change the conversation settings or metadata for this call.

One call per conversation at a time: a second one returns 409. Call time counts from connection.ready until the call ends. Rotating or revoking the key ends its calls.

Errors

StatusCodeWhat to do
401authentication_requiredThe key is missing or revoked. Send a current bv_ key.
402allowance_exhaustedThe allowance has been used. allowance_expired means the plan has ended.
403application_suspendedThe application is suspended. Contact the administrator.
410connection_endedThe call, session or saved result has ended. Start a new one.
422invalid_requestA field, the audio or the Idempotency-Key is not valid. Audio problems use codes such as no_speech or audio_too_long.
429rate_limitedToo many requests. Wait for Retry-After seconds.
503voice_unavailableTemporarily unavailable. Retry after Retry-After with the same Idempotency-Key.
409conversation_connectedA call is already connected to this conversation. End it first.

Search documentation

Documentation
Dashboard (opens in a new tab)