Skip to main content

What you will build

In this guide, you will build a minimal flow:
  • Mint an ephemeral realtime session token from your backend
  • Connect to Sippet realtime events
  • Render live call updates in your UI

Prerequisites

  • Node.js 18+
  • A Sippet API environment
  • A secret key stored on your backend
  • Contact and AI agent records in your Sippet org

Step 1: install the SDK

Step 2: mint realtime session tokens on your backend

Step 3: initialize realtime events in the browser

Step 4: keep token refresh simple

  • Re-mint token on reconnect failures.
  • Re-mint token shortly before expiry.
  • Keep secret keys out of browser code.

Next steps

  • Session token guide: /guides/realtime-session-tokens
  • Realtime design patterns: /guides/realtime-telephony-patterns