API
SCOUT DOCS · REFERENCE / APIThe Branch controller exposes the local HTTP API consumed by the admin web app. The repository’s generated contract is the authority:
docs/api/openapi.jsonDo not hand-edit that file. The Rust API definitions generate it, and CI checks the generated TypeScript contracts for drift.
Resource groups
Section titled “Resource groups”/sessionprovides the fixed local-admin browser sign-in flow./api-tokensissues, lists, and revokes bearer credentials for programmatic access with that sameadminauthority./network,/branches, and/nodesexpose the administrative hierarchy, enrollment, authority, and operational state./settings,/config, and configuration revision routes cover render, validation, diff, stage, and apply work./data-areas,/access-grants,/access/preview,/identities, and/subjectsmodel the bounded access flow./auditand/events/streamexpose durable high-value activity and live UI invalidation signals.
Regenerate the contract
Section titled “Regenerate the contract”bun run generate:apiCheck without rewriting:
bun run check:apiProblems use application/problem+json and are designed to be safe for UI
display. Authentication and Branch-scope checks remain server-side;
client validation is a usability layer, not a security boundary.