Verify the authenticity of an incoming webhook request. Each provider has its own signature scheme:
Parse a verified webhook payload into normalized call events. Transforms provider-specific event formats into the common NormalizedCallEvent discriminated union.
Initiate an outbound phone call. For 'notify' mode, the provider generates TwiML/SSML to speak the message and hang up. For 'conversation' mode, the provider sets up a bidirectional media stream.
Hang up an active call.
Optional playPlay TTS audio into an active call (non-streaming).
Used by providers that support in-call TTS via their API
(e.g., Twilio's
Optional startStart STT listening on an active call (non-streaming). Used by providers that support in-call speech recognition.
Optional stopStop STT listening on an active call.
Readonly nameProvider identifier.
Core interface for telephony providers.
Implementations wrap provider-specific SDKs (Twilio REST API, Telnyx Call Control v2, Plivo Voice API) and normalize all interactions to this contract.
Example