embeddableCall

View as MarkdownOpen in Claude
1embeddableCall(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

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