API Reference
This documentation site publishes a static OpenAPI 3.0 JSON file for download, codegen, contract tests, and schema inspection:
/api-reference/openapi.json (served from public/api-reference/openapi.json in the docs repo).docs.betterdata.co is optional future work — the JSON artifact is the maintained contract surface for now.The tenant SCM Next.js app may also expose a generated spec at runtime (e.g. /api/openapi.json) for development or in-environment tooling. Whether that document is byte-for-byte identical to the bundle above in every environment is an implementation detail — compare checksums or info.version after deploy when aligning clients.
Narrative overview, auth patterns, and endpoint families live under API overview and Authentication. Day-to-day MDX reference pages are generated from the same API manifest workflow as the bundle; see How we document APIs.
Do not commit secrets or private URLs into OpenAPI servers entries when publishing public docs.
pnpm api:scan