Jump to content

API profile SuperRoot

From Wiki 7Kas
Revision as of 07:39, 23 July 2026 by Maintenance script (talk | contribs) (API docs (generated from func=help))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Profile SuperRoot (global administrator): full access, 44 functions. Sees provider cost, selling price and profit.

Meta / discovery

  • API help — Lists the API functions available to the role of the calling ukey, with each function's description, parameters (meaning, optional/default), an example call and the response format.

Outgoing call billing

Pay-per-use services

Incoming calls

CDR (call detail)

  • API getcdr — Call Detail Records (CDR) for a period.

Call recordings

  • API getrecordings — Lists the caller's call recordings with availability flags (has_transcript, has_summary, has_audio).
  • API getrecordingtranscript — Returns the transcription of one of the caller's recordings, with or without the summary (resumen).
  • API getrecordingfile — Downloads the audio recording (stereo MP3) of one of the caller's calls.
  • API getrecordingcertification — Downloads the integrity/veracity certification file (.txt) of one of the caller's recordings: file, user, date, time, uniqueid, src, dst and the SHA-512 hash (matches voip_callrecord.recordhash).

CLIs / lines

  • API getclis — Lists CLIs (caller-line identities / DDIs) for the account.

Tucloud PBX

Account management

WireGuard / VPN

  • API getwgpeers — Lists WireGuard peers of a server (SSIP-transparent union of SSIP + VPN pairs).
  • API setwgstatus — Enables/disables a WireGuard peer.
  • API registerwgserver — Registers/updates a WireGuard server (public key, listen port, endpoint).
  • API registerwgdevice — Registers an SSIP device's WireGuard public key (keyed by device MAC).
  • API getwgconfig — Returns the WireGuard config for an SSIP device, authenticated by the device's vpnpassword (no role gate — any valid ukey with the correct password).
  • API registervpnwgdevice — Registers a non-SSIP VPN WireGuard device, authenticated by (host, password) of the VPN pair (voip_vtun).
  • API getvpnwgconfig — Returns the WireGuard config for a non-SSIP VPN device, authenticated by (host, password) of the VPN pair.

Administration

  • API SetDebugLevel — Sets the runtime debug/log verbosity level.
  • API ReloadUsersKeys — Hot-reloads the API keys from the database without restarting the service.
  • API resetinternalkey — Regenerates the non-showable internal API key for an account.
  • API getpoolstats — Connection-pool statistics for the 4 PostgreSQL pools (busy/free/waiters, hits/misses, utilization).

Diagnostics


API VoIP · ▶ Try it live