📄️ 📞 Overview
Embed browser voice calling in your web app with the 2Chat Voice SDK — outbound + inbound calls, mute, hold, and DTMF over WebRTC.
📄️ 🚀 Quickstart
Install the 2Chat Voice SDK, mint a JWT on your backend, and place your first browser call in under five minutes.
📄️ 🔐 Authentication
Mint short-lived SDK JWTs from your backend with POST /sdk/voip/access-token. Keep your long-lived 2Chat API key off the browser.
📄️ 🎛️ Device API
Full reference for the Device class — options, methods, events, and lifecycle.
📄️ ☎️ Call API
Reference for the Call class — accept, reject, mute, hold, DTMF, audio device control, and call-quality metrics.
📄️ 🚨 Errors
Every VoiceSDKError code, what triggers it, and how to recover.