Your first call flow

Run the Node starter locally, inspect call events, and prepare your application for live connectivity.

Open developer playground

Start locally

Download the Node starter, unzip it, and open a terminal in the extracted folder. Use Node.js 22 or later.

bash
npm install
npm run demo
npm test

The 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

text
SESSION.WELCOME
CALL.ACCEPTED
CALL.RINGING
CALL.ANSWERED
CALL.MEDIA_READY
BINARY AUDIO ROUND TRIP OK
CALL.ENDED

Commands 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