Skip to main content

Connectors

The connectors resource bridges inbound calls from a telephony provider (Twilio, Plivo, or Telnyx) into a room. Create a connector and configure its webhook URL at the provider. Calls then flow into VideoSDK.

For provider-specific setup, see the Twilio Connector, Plivo Connector, and Telnyx Connector guides.

Create a connector

const connector = await client.connectors.create({ provider: "twilio", roomId });
connector.webhookUrl; // set this at the provider

Options: provider (required, one of twilio, plivo, or telnyx), name, roomId (fallback room), defaultRuleId, region.

Manage

await client.connectors.list();
await client.connectors.get(connectorId);
await client.connectors.rotateKey(connectorId); // invalidates the old webhook URL
await client.connectors.delete(connectorId);

The connector object

Returned by connectors.create, list, and get.

FieldTypeDescription
idstringUnique connector id.
providerstringTelephony provider (twilio, plivo, telnyx).
namestringDisplay name.
webhookUrlstringPublic webhook URL to configure at the provider.
defaultRoomIdstringFallback room used when no routing rule resolves.
defaultRuleIdstringRouting rule applied by default.
regionstringRegion call ingestion is pinned to.
createdAtstringCreation timestamp (ISO-8601).

Got a Question? Ask us on discord