Calls and telephony

The built-in calls API covers the complete calling stack of this server: availability bootstrap, device reachability registration, direct calls, conference rooms with moderation and per-participant audio controls, incoming call claims, lifecycle actions, and call history with recovery.

All endpoints in this group use standard API authentication and operate on the authenticated account only. The server stays authoritative for caller identity, target provisioning, SIP identities, and any broker-facing credentials; clients submit intent, device, and runtime context, never identity lookups of their own.

For the user-facing documentation of calls, see the help center section on starting a call. External video-call providers (BigBlueButton, Nextcloud Talk, WebEx, ConstructorGroups) keep their own separate creation endpoints and are not part of the built-in calls lifecycle described here.

Availability and reachability

Every client session starts with a bootstrap request and, when direct calling is available, registers the current device. Reachability heartbeats keep that registration fresh, short-lived SIP bearer credentials authorize media, and a test push verifies the wakeup path.

Direct calls

An outgoing direct call is validated, planned, and then driven through lifecycle actions. Incoming invites are claimed before the client acts on them.

  • Preflight a built-in direct call — validate call intent and reachability without creating a call session.
  • Plan built-in direct call — plan an authenticated audio or video call; the response again declares available versus the provider_link fallback.
  • Submit a call lifecycle action — the idempotent answer, decline, hangup, or mute action for a call. Tenant push cleanup commits atomically with accepted actions; a temporary cleanup transport failure does not undo the action, and cleanup_pending reports unacknowledged cleanup.
  • Claim incoming built-in call invite — submit the observed incoming invite context and receive a normalized claim envelope, or a closed failure with accepted: false.

Conference rooms

Conference rooms reuse the same authenticated trust boundary. All conference endpoints operate only on the caller-owned live conference record exposed by call recovery and fail closed when the authenticated room contract does not grant the requested capability.

History, reporting, and recovery

  • Report built-in call lifecycle batch — persist locally observed call phases keyed by appCallId. Best-effort for the runtime, but the stored records become the authenticated source for recent-call and active-call surfaces.
  • Get built-in call history — newest-first, grouped-history-ready records with direction, media type, peer identity, and room hints.
  • Clear built-in call history group — delete one grouped history row by its server-issued group_key.
  • Fetch built-in call recovery — active-call recovery and conference-presence hints, so the client can restore in-progress calls without local-only state.

Telephony and the PBX bridge

Calling public telephone numbers and connecting an organization's telephone system are configured through the telephony service agreed for the deployment, not through this API group. Effects of a PBX integration on messages and calls can be resolved by resolve a PBX integration effect. For the feature documentation, see dial a phone number and call quality and connection.