Skip to content

API Reference

The current backend API surface is implemented primarily in scripts/serve_client_portal.py. Stable product endpoint and queue-action contracts are registered in LeafEnterprise/service_contracts.py.

API Documentation Sources

Source Use
Generated service contracts Stable endpoint and queue-action registry from code.
Live route families Curated docs for route groups currently implemented directly in the backend server.
Architecture notes Historical decisions and detailed rollout context.

API Contract Rule

New backend route families should add or update formal contracts as they stabilize. Curated docs can describe live routes before a full schema registry exists, but they must mark the authority and failure states honestly.