DID Routing

List incoming numbers and bind them to agents.

DIDs (Direct Inward Dialing numbers) route inbound calls to a specific agent.

List DIDs

const dids = await voice.dids.get();
dids = client.dids()

Add a DID

Map an incoming number to an agent.

const did = await voice.dids.create({
  didNumber: "+18445551234",
  provider: "voicelink",
  bearerToken: "vl_xxx",
  isDefault: true,
  clientId: "AC123",
});
did = client.create_did(
    did_number="+18445551234",
    provider="voicelink",
    bearer_token="vl_xxx",
    is_default=True,
    client_id="AC123",
)

Parameters

FieldTypeRequiredDescription
didNumber / did_numberstringYesThe telephony number to bind.
providerstringYesTelephony provider for the number.
bearerToken / bearer_tokenstringYesProvider auth token for this number.
isDefault / is_defaultbooleanYesWhether this is the default inbound number.
clientId / client_idstringNoProvider account / client identifier.

On this page