API Reference Notes
The public spec is published at https://docs.amos.com/openapi.yaml after each static build.
OpenAPI source (keep this aligned)
Resolution order in scripts/sync-openapi.mjs:
OPENAPI_SOURCEif set.- Sibling
../openapi/amos/openapi.public.yaml. spec/openapi.public.yaml— written by theamos/openapiworkflow Sync public OpenAPI spec to api-docs.- Optional GitHub Contents API (
OPENAPI_GITHUB_TOKEN). - Vendored
docs/api-reference/openapi.public.yaml.
amos/openapi copies the public spec into both spec/openapi.public.yaml and the vendored file, then pushes. That push rebuilds this site.
Grouped YAML (what Scalar renders) overlays servers to https://api-sandbox.amos.com and https://api.amos.com. The copied public file stays a verbatim upstream snapshot.
How it works
npm run sync:openapiresolves a source (order above).- Writes
docs/api-reference/openapi.public.yaml. - Optional
docs/openapi-overlays/tag-blurbs.yamlmerges tag Markdown. - Writes one grouped spec (
openapi.grouped.yaml) and a single API reference nav item at/api. Tags (Payment Intents, Customers, …) are the resource list inside that page — no product-area buckets. - Try Request uses
proxy.docs.amos.com. MCP and developer tools are off (mcp.disabled,showDeveloperTools: never) so the docs origin does not ask Chrome for apps on this device / loopback access.
Tag order is TAG_NAV_ORDER in scripts/sync-openapi.mjs (Payment Intents first). Remaining tags with operations append alphabetically.