LiveKit JS Server SDK - v2.15.0
    Preparing search index...

    Class ConnectorClient

    Client to access Connector APIs for WhatsApp and Twilio integrations

    Hierarchy

    • ServiceBase
      • ConnectorClient
    Index

    Constructors

    • Parameters

      • host: string

        hostname including protocol. i.e. 'https://.livekit.cloud'

      • OptionalapiKey: string

        API Key, can be set in env var LIVEKIT_API_KEY

      • Optionalsecret: string

        API Secret, can be set in env var LIVEKIT_API_SECRET

      • Optionaloptions: ClientOptions

        client options

      Returns ConnectorClient

    Methods

    • Connect an established WhatsApp call (used for business-initiated calls)

      Parameters

      • whatsappCallId: string

        Call ID sent by Meta

      • sdp: SessionDescription

        Session description from Meta

      Returns Promise<ConnectWhatsAppCallResponse>

    • Disconnect an active WhatsApp call

      Parameters

      • whatsappCallId: string

        Call ID sent by Meta

      • whatsappApiKey: string

        The API key of the business that is disconnecting the call

      Returns Promise<DisconnectWhatsAppCallResponse>