PurpleCallio

Official example

Hosted UI example

Create a call from trusted backend code and direct an authorized participant to their returned hosted URL.

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" });

redirect(call.callerUrl);

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.