Skip to main content
TelephonyResource is reachable on every Kataven Node client as client.telephony. Each method maps to one HTTP endpoint on the Hub API; links to the underlying spec entry are inline below. Carrier credentials (encrypted) and phone-number management. Pin a number to an agent so inbound calls route to that agent.

Methods at a glance

Reference

client.telephony.listProviders(...)

List telephony provider credentials HTTPGET /api/telephony/providers · API reference →
Returns metadata about every carrier credential configured for this account. Plaintext credentials are not returned.

client.telephony.createProvider(...)

Add a telephony provider credential HTTPPOST /api/telephony/providers · API reference →
Encrypts the credentials JSON via the Secret Encryptor service, then inserts the row. Plaintext is never persisted.

client.telephony.deleteProvider(...)

Delete a telephony provider credential HTTPDELETE /api/telephony/providers/{id} · API reference →
Refuses if any phone-number row still references this credential — detach numbers first.

client.telephony.listNumbers(...)

List phone numbers HTTPGET /api/telephony/numbers · API reference →

client.telephony.createNumber(...)

Register a phone number HTTPPOST /api/telephony/numbers · API reference →
Binds an E.164 number to a carrier credential row and (optionally) pins it to one agent. Inbound + outbound default to enabled.

client.telephony.updateNumber(...)

Pin or unpin a phone number to an agent HTTPPATCH /api/telephony/numbers/{id} · API reference →

client.telephony.deleteNumber(...)

Delete a phone number HTTPDELETE /api/telephony/numbers/{id} · API reference →