BookedMeetings
Docs contents

Contracts and API

contracts/schemas/*.json (JSON Schema 2020-12) is the single source of truth. make gen generates pydantic models (server/app/contracts/generated) and TypeScript types (web/src/contracts); make check fails on drift.

Every record carries schema_version, tenant_id and trace_id.

RecordPurpose
booking_eventbooking state change; every field tagged with the purposes allowed to read it (x-purposes)
consent_recordbasis (transaction, explicit, inquiry), channel, expiry, revocation; Consent Manager placeholders
clideclared calling number: series, purpose, OAP, A2P declaration, status
gate_decisionimmutable per-gate results, written before any dial
call_outcomeoutcome, tools called (hashed args), handoff, latency, cost in paise, AI provenance
handoff_summaryfive-line case summary with 48 h and 30-day SLA fields
complaintUCC complaint, including DLT-forwarded app spam reports
audit_eventone privileged action

No contract has a card, CVV, UPI PIN or OTP field.

HTTP API

Bearer tokens map to roles (admin, ops, auditor, read_only). Endpoints: /campaigns, /calls, /consent, /cli, /handoff, /killswitch, /metrics (Prometheus), /simulate, /rights-requests, /incidents. The OpenAPI document lives at contracts/openapi.yaml, and conformance is tested with schemathesis.