Mint a browser softphone session
Step 1 of the two-step browser softphone handshake. Mints a WebRTC session (token + credential) the browser registers with the @telnyx/webrtc SDK.
- Call this endpoint and register the browser with the returned session.
- Once registered, call
POST /v1/voice/calls/web/dialwith the returnedcredentialIdto place the call.
The split avoids bridging to a browser that has not finished registering. The token lives ~1 hour (it must outlive the whole call, not only the handshake).
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Responses
Success· the request worked
Errors· the request failed
Estimate call cost
Pre-call cost estimate for a PSTN call: the carrier leg plus optional recording and transcription add-ons. It uses the same billing formula as the post-call invoice, so the quote and the final charge can't disagree. The carrier figure follows the carrier's per-destination rate card: a call dialed from a number in the destination country uses the local mobile rate, and a `tel:` forward destination is quoted as a second carrier leg billed from the same number. The real cost comes from the settled carrier record after the call. Parity endpoint of `GET /v1/whatsapp/calls/estimate`, minus the Meta line. PSTN calls have no separate Meta bill, so `totalCostUSD` equals `billableCostUSD`.
Dial from the browser softphone
Step 2 of the browser softphone handshake: rings the browser registered with the credential from `POST /v1/voice/calls/web` first, and dials the target only once the browser answers. The callee's pickup then connects immediately, with no ringing after they answer. - The call is logged as outbound (from = your number, to = target) and recorded per the number's settings. - `ringTimeoutSeconds` applies to the target's phone, not to the browser.