Proprietary API reference for the Enterprise platform.
Production: https://developers.enterprisecrm.com
This repository is the source of truth for the Enterprise API documentation:
- 1,236 API operations across 20 modules
- Guides — authentication, getting started, webhooks, and per-module overviews
- API Reference — interactive OpenAPI docs (Scalar API Reference widget)
enterprise-api-docs/
├── docs/
│ ├── api-reference/ # OpenAPI 3.1 specs (per module)
│ └── guides/ # Markdown guide pages
├── assets/ # Site CSS, search, favicons, theme helpers
├── scripts/
│ ├── build-static.mjs # Production static site build
│ ├── build-legacy.mjs # Legacy Scalar SPA build (rollback only)
│ └── validate-dist.mjs # Post-build smoke tests
├── scalar.config.json # Scalar Docs config (preview + route source)
├── patch-preview.mjs # Keeps favicon/CSS injected during preview
├── DEPLOY_CLOUDFLARE.md # Hosting & deployment details
└── README.md
Use Scalar's preview server to edit guides and validate navigation:
npm run preview
# equivalent to:
# npx @scalar/cli project preview & node patch-preview.mjsOpen http://localhost:7970 — live reload on file changes.
Validate config:
npm run check-configThe production site is a static-first build for fast first paint:
| Route | Delivery |
|---|---|
/, /getting-started, guide pages |
Pre-rendered HTML (~instant load) |
/api/* |
Static shell + lazy-loaded Scalar API Reference widget |
npm run build # writes dist/ (86 files, ~6 MB)
npm run validate:dist # smoke test (local serve or set VALIDATE_BASE_URL)| Command | Target |
|---|---|
pnpm publish:api-docs (from enterprise repo) |
Generate specs → build → Cloudflare Pages |
npm run deploy:production |
Cloudflare Pages → developers.enterprisecrm.com |
See DEPLOY_CLOUDFLARE.md for the full publish workflow, CI, and architecture.
| URL | Platform | Notes |
|---|---|---|
| https://developers.enterprisecrm.com | Cloudflare Pages | Production |
| https://enterprise-api-docs-9s9.pages.dev | Cloudflare Pages | Deploy preview URL |
The previous production build bundled the full Scalar Docs SPA (~29,000 JS chunks, ~159 MB). It caused multi-second white screens on first load. Kept for emergency rollback only:
npm run build:legacy
npm run deploy:production # deploy legacy build to Cloudflare PagesCopyright © 2026 Enterprise Marketplace Ltd. All rights reserved.
Use is governed by the Enterprise Master Services Agreement.