embeddableCall

View as MarkdownOpen in Claude
embeddableCall(options): Promise<Call>

Creates a call using an embed token for simple, embeddable integrations.

Handles client creation, authentication, and dialing in a single call.

Parameters

options
EmbeddableCallOptionsRequired

Embed token, host, and destination.

options.to
stringRequired

Destination URI to call.

options.embedToken
stringRequired

Embed token for authentication.

options.host
stringRequired

SignalWire host URL.

Returns

Promise<Call>

The created Call instance.

Examples

Drop-in call widget

import { embeddableCall } from '@signalwire/js';
const call = await embeddableCall({
to: '/public/conference',
embedToken: 'YOUR_EMBED_TOKEN',
host: 'your-space.signalwire.com',
});