Palbase Calls
Palbase's calls module: a project's people calling each other — one to one or in a group, by voice or with video — in one shared, multi-tenant service; every project is isolated by row security in its database.
Every call's media — one to one or in a group, voice or video — flows through the platform's media server (LiveKit, open source): a device gets a ticket into its call's room (POST /calls/{call_id}/media) and connects with LiveKit's open-source client libraries; where UDP is shut, over TCP on port 443. A direct call that a third person or the project's agent comes into goes on in the same room. The media never passes through this API: it keeps who called whom, when, how long and how it ended, and what the media server sent each participant — the history people read, and the data the project pays for (per GB the media server sent the call's people, voice and video alike).
A person's devices ring by push (PushKit on iOS, a high-priority data message on Android, a notification in a browser) and hear their calls as they change on their own realtime channel, calls:<ref>:<user_id> (event call, carrying a call's snapshot).
The project's server, with its secret key, runs the module's settings, reads and ends calls, and lets its own agents into a call with a ticket. Palbase runs no agent of its own.
The contract itself: /openapi/calls.openapi.json
Calls
/callsMy callsPOST/callsCall peopleGET/calls/places/{place}A place's callPOST/calls/places/{place}/watchWatch a placeDELETE/calls/places/{place}/watchStop watching a placeGET/calls/{call_id}A callPOST/calls/{call_id}/acceptAnswer a callPOST/calls/{call_id}/declineTurn a call downPOST/calls/{call_id}/joinJoin a group callPOST/calls/{call_id}/leaveHang upPOST/calls/{call_id}/participantsAsk more people inGET/calls/{call_id}/transcriptionGet call transcriptionPOST/calls/{call_id}/transcription/audioTranscribe participant audio clipAdmin
/calls/admin/callsThe project's callsGET/calls/admin/calls/{call_id}A callPOST/calls/admin/calls/{call_id}/endEnd a callPOST/calls/admin/calls/{call_id}/ticketsLet an agent inGET/calls/admin/calls/{call_id}/transcriptionGet call transcriptionPOST/calls/admin/calls/{call_id}/transcriptionStart call transcriptionDELETE/calls/admin/calls/{call_id}/transcriptionStop call transcriptionPOST/calls/admin/calls/{call_id}/transcription/audioTranscribe call audio clip