Skip to main content
A web call always has two parts:
  • A client SDK in the browser or app. It opens the WebRTC audio and talks to the agent.
  • A session route on your backend. It holds your bn- API key and mints one short-lived, single-use session per call.
Every client SDK below uses the same session route, the same call states, events and error codes as the browser SDK.

Client SDKs

React and Vue apps use the browser SDK directly. A React hook and a Vue 3 composable are in example/frameworks.
Mobile apps need microphone permission: NSMicrophoneUsageDescription on iOS and RECORD_AUDIO on Android. Each repository README lists the full platform setup.

React Native

Flutter

iOS

Android

Session route in your backend language

Your backend does not need a Bolna package. The session route is one HTTP call:
Return Bolna’s JSON and status code unchanged. A 429 must reach the SDK as a 429 so it reports at_capacity. Add your own user authentication to the route. The other examples serve POST /api/bolna-session, the URL used in the quick starts above. Point sessionUrl at whichever path your route uses. Each example reads BOLNA_API_KEY and BOLNA_AGENT_ID from the environment. The backends README shows how to run each one.