PurpleCallio

Official example

JavaScript video calling example

Create a video call on a trusted backend, then join it with the headless meeting engine in the browser.

Example

example.ts
import { PurpleCallioClient } from "@purplecallio/sdk";

const client = new PurpleCallioClient({ apiKey: process.env.PURPLECALLIO_API_KEY! });
const call = await client.createCall({ callerId: "user_alice", receiverId: "user_bob", type: "VIDEO" });

// Return only the participant-specific token, call ID, and signal URL to the browser.

Security

Keep PURPLECALLIO_API_KEY on a trusted backend. Return participant-specific session information to the browser instead of exposing the project API key.

Build with PurpleCallio

Explore the documentation to choose hosted UI, React components, or the headless SDK for your integration.