BookedMeetings
Docs contents

API reference

The BookedMeetings engine exposes a JSON HTTP API. This page is generated from contracts/openapi.yaml, which CI checks against the running application and fuzzes with schemathesis. Every endpoint except /healthz needs a bearer token; the token decides the role (admin, ops, auditor, read-only).

curl -H "Authorization: Bearer $AV_TOKEN" https://<engine-host>/whoami

Errors share one shape: {"error": "<code>", "detail": "<message>"}. Request bodies are strict: a field of the wrong type is rejected, never coerced.

api-keys

MethodPathSummaryBodyReturns
GET/api-keysList KeysApiKeyOut[]
POST/api-keysIssue KeyApiKeyInIssuedKeyOut
POST/api-keys/{key_id}/revokeRevoke KeyReasonInApiKeyOut
POST/api-keys/{key_id}/rotateRotate KeyReasonInIssuedKeyOut

audit

MethodPathSummaryBodyReturns
GET/auditList AuditAuditEvent[]
GET/audit/exportExport Audit

calls

MethodPathSummaryBodyReturns
GET/callsList CallsCallOutcome[]
GET/calls/{call_id}Get CallCallOutcome
GET/calls/{call_id}/transcriptGet TranscriptTranscriptLine[]

campaigns

MethodPathSummaryBodyReturns
GET/campaignsList CampaignsCampaignView[]
POST/campaigns/{campaign_id}/pausePause CampaignReasonInCampaignView
POST/campaigns/{campaign_id}/resumeResume CampaignReasonInCampaignView

cli

MethodPathSummaryBodyReturns
GET/cliList CliCli[]
PUT/cli/{cli_e164}Upsert CliCliInCli
MethodPathSummaryBodyReturns
POST/consentRecord ConsentConsentInConsentRecord
POST/consent/lookupLookup ConsentPhoneInConsentRecord[]
POST/consent/opt-outOpt OutOptOutInConsentRecord[]

demo

MethodPathSummaryBodyReturns
POST/demo/killswitchKillKillSwitchResult
POST/demo/killswitch/releaseReleaseKillSwitchResult
POST/demo/runRunRunInDemoRun

handoff

MethodPathSummaryBodyReturns
GET/handoffList HandoffsHandoffView[]
GET/handoff/{call_id}Get HandoffHandoffSummary
POST/handoff/{call_id}Act On HandoffHandoffActionHandoffSummary

incidents

MethodPathSummaryBodyReturns
GET/incidentsList IncidentsIncidentView[]
POST/incidentsOpen IncidentIncidentInIncidentView
POST/incidents/{incident_id}/acknowledgeAcknowledge IncidentReasonInIncidentView
POST/incidents/{incident_id}/reportedMark Incident ReportedReasonInIncidentView

killswitch

MethodPathSummaryBodyReturns
GET/killswitchGet KillswitchKillSwitchState
POST/killswitchSet KillswitchKillSwitchInKillSwitchState

ops

MethodPathSummaryBodyReturns
GET/healthzHealthzHealth
GET/metricsMetrics
GET/statusStatusStatusReport
GET/whoamiWhoamiWhoAmI

rights

MethodPathSummaryBodyReturns
GET/rights-requestsList RequestsRightsRequestView[]
POST/rights-requestsOpen RequestRightsRequestInRightsRequestView
POST/rights-requests/{request_id}/acknowledgeAcknowledgeRightsRequestView
POST/rights-requests/{request_id}/completeCompleteCompleteInCompleteOut

simulate

MethodPathSummaryBodyReturns
POST/simulateSimulateSimulateInSimulationResult

Record schemas (BookingEvent, CallOutcome, GateDecision, HandoffSummary and others) are JSON Schema 2020-12 files in contracts/schemas/; Python and TypeScript types are generated from them and CI fails on drift.