Voice

Mint a browser softphone session

Changed on

Step 1 of the two-step browser softphone handshake. Mints a WebRTC session (token + credential) the browser registers with the @telnyx/webrtc SDK. Once registered, call POST /v1/voice/calls/web/dial with the returned credentialId to 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).

post/v1/voice/calls/web

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/voice/calls/web
  • Auth: HTTP bearer

Response

WebRTC session minted.

successboolean
tokenstring

Login token for the browser WebRTC SDK.

credentialIdstring

Pass to POST /v1/voice/calls/web/dial once the browser is registered.

expiresAtstring date-time
sdkstring

Example response

{
  "sdk": "@telnyx/webrtc"
}

Changes

    • warning

      added the new account enum value to the / response property for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status