Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.kataven.ai/llms.txt

Use this file to discover all available pages before exploring further.

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

MethodHTTPSummary
listProvidersGET /api/telephony/providersList telephony provider credentials
createProviderPOST /api/telephony/providersAdd a telephony provider credential
deleteProviderDELETE /api/telephony/providers/{id}Delete a telephony provider credential
listNumbersGET /api/telephony/numbersList phone numbers
createNumberPOST /api/telephony/numbersRegister a phone number
updateNumberPATCH /api/telephony/numbers/{id}Pin or unpin a phone number to an agent
deleteNumberDELETE /api/telephony/numbers/{id}Delete a phone number

Reference

client.telephony.listProviders(...)

List telephony provider credentials HTTPGET /api/telephony/providers · API reference →
listProviders()
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 →
createProvider(provider: Provider, label: string, credentials: Record<string, unknown>)
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 →
deleteProvider(id: string)
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 →
listNumbers(agentId?: string)

client.telephony.createNumber(...)

Register a phone number HTTPPOST /api/telephony/numbers · API reference →
createNumber(input: {
  e164: string;
  provider: Provider;
  credentials_id: string;
  agent_id?: string | null;
  inbound_enabled?: boolean;
  outbound_enabled?: boolean;
})
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 →
updateNumber(id: string, agentId: string | null)

client.telephony.deleteNumber(...)

Delete a phone number HTTPDELETE /api/telephony/numbers/{id} · API reference →
deleteNumber(id: string)