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
| Field | Type | Required | Description |
|---|---|---|---|
didNumber / did_number | string | Yes | The telephony number to bind. |
provider | string | Yes | Telephony provider for the number. |
bearerToken / bearer_token | string | Yes | Provider auth token for this number. |
isDefault / is_default | boolean | Yes | Whether this is the default inbound number. |
clientId / client_id | string | No | Provider account / client identifier. |