Interface InitiateCallInput

Parameters for initiating an outbound call.

interface InitiateCallInput {
    callId: string;
    fromNumber: string;
    toNumber: string;
    mode: CallMode;
    message?: string;
    notifyVoice?: string;
    webhookUrl: string;
    statusCallbackUrl?: string;
    mediaStreamUrl?: string;
    mediaStreamToken?: string;
}

Properties

callId: string

Internal call ID assigned by CallManager.

fromNumber: string

E.164 phone number to call from.

toNumber: string

E.164 phone number to call.

mode: CallMode

Call interaction mode.

message?: string

Pre-composed message (for 'notify' mode).

notifyVoice?: string

TTS voice to use for notify-mode messages.

webhookUrl: string

Webhook URL the provider should call back to.

statusCallbackUrl?: string

Status callback URL for call state changes.

mediaStreamUrl?: string

Media stream WebSocket URL (for 'conversation' mode).

mediaStreamToken?: string

Auth token appended to media stream URL for validation.