voice & calling
Dial from the browser softphone
Step 2 of the browser softphone handshake: places an outbound call
whose answered leg is bridged to the browser registered with the
credential from POST /v1/voice/calls/web. The call runs through the
normal outbound lane, so it is logged as outbound (from = your number,
to = target) and recorded per the number's settings.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
tostring
The number to call, E.164 with leading +.
Match
^\+\d{6,15}$credentialIdstring
The WebRTC credential id returned by POST /v1/voice/calls/web (the registered browser).
fromNumber?string
Which of your voice-enabled numbers to call from (optional when you have one).
Match
^\+\d{6,15}$recordOverride?boolean
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.voice.dialVoiceWebCall({ body: { to: 'string', credentialId: 'credential_abc123', },});console.log(data);{
"success": true,
"callId": "string",
"telnyxCallControlId": "string",
"status": "dialing",
"direction": "outbound",
"from": "string",
"to": "string",
"recordingEnabled": true
}{
"error": "Unauthorized"
}Empty
Empty
Empty