VocalDocscontracts 1.65.0

PhoneNumber

A carrier number attached to the Organization and its routing to an Agent (1.22.0, FR-telephony-2). Every Call on it is live: there are no test Phone numbers (api.md section 3).

An object with 15 fields.

Fields

FieldTypeRequiredDescription
agent_idAgentId or nullyesThe Agent that inbound Calls to the number run (1.22.0). Null when the number routes to no Agent: every inbound Call to it is then refused and recorded with the ended reason refused_no_route.
agent_versioninteger or nullyesThe published version of the Agent that every inbound Call to the number runs, or null to run the Agent's active version as it stands when each Call is admitted. (1.22.0)
capabilitiesarray of PhoneNumberCapabilityyesWhat the number may carry, each capability once (1.22.0).
created_atTimestampyes
displaystringyesThe number masked: the country calling code, a space-separated elision and the last four digits, such as +1 ... 2486, the form of a Call's destination_hint (1.22.0). Show it wherever the full number is not needed.
e164stringyesThe full number in E.164 form (1.22.0). Only the routes that need telephony:read answer a Phone number, so only a holder of that permission receives it. It is never logged and never written to an Audit event.
idPhoneNumberIdyes
inbound_media_encryptionSipMediaEncryption or nullnoThe media encryption the inbound LiveKit SIP trunk holds now (1.34.0), read-only: an operator changes it by provisioning again, never through the api. Null when the api could not read the trunk; a reader treats its absence as null, as from an api before 1.34.0.
object"phone_number"yes
outbound_media_encryptionSipMediaEncryption or nullnoThe media encryption the number's outbound trunk holds now (1.34.0), read-only. Null when the number has no outbound trunk, which a number without the outbound capability does not, or when the api could not read it; a reader treats its absence as null.
outbound_transportSipTransport or nullnoThe SIP transport the number's outbound trunk holds now (1.34.0), read-only; null as outbound_media_encryption is. The inbound trunk has none, because the carrier chooses it.
revisionintegeryesCounts writes to the Phone number (1.22.0); returned as the ETag and required in the If-Match of the update.
sip_trunk_idSipTrunkIdyesThe SIP trunk the number is reached on (1.22.0).
statusPhoneNumberStatusyes
updated_atTimestampyes

Used by

The operations whose parameters, request body or responses name this shape directly.