Start locally
Download the Node starter, unzip it, and open a terminal in the extracted folder. Use Node.js 22 or later.
npm install
npm run demo
npm testThe demo starts a WebSocket simulator bound to 127.0.0.1, connects a source client, originates a simulated call, exchanges a binary audio frame, and ends the call. It requires no credentials and sends no phone traffic. The simulator is an integration aid, not a reproduction of carrier routing or production timing.
Follow the events
SESSION.WELCOME
CALL.ACCEPTED
CALL.RINGING
CALL.ANSWERED
CALL.MEDIA_READY
BINARY AUDIO ROUND TRIP OK
CALL.ENDEDCommands use an action and a nested payload. Events use a type and a nested payload. A call's identifier is payload.call_id.
Connect your application
Create an account, then obtain your assigned control endpoint, tenant key, caller number, and configured route through your console and onboarding contact. The kit does not provision numbers or credentials.
Keep the key on your server. Connect to the assigned secure WebSocket using Authorization: Bearer <key>. Do not substitute the website URL for the control endpoint.
The kit's live example requires explicit --live opt-in and your own configuration. Running it can initiate a real, billable call. Read its README before enabling it.
Choose your next step
- Call control: message envelopes, idempotent outbound commands, events, and errors.
- Inbound calls: handle
CALL.INCOMING, then accept or reject. - Audio streaming: media URLs, binary PCM, sample rate, and frame timing.
- Account configuration: configure live connectivity.