Reference Hub
Technical contracts, specifications, and API reference documentation for the BeechCMS ecosystem.
BeechCMS exposes two primary API surfaces:
- Internal API: JWT-authenticated endpoints used by the dashboard and administrative tools.
- Public API: Hardened, API-key-gated endpoints with RFC 9457 Problem Details for external applications and headless frontends.
Base URLs & Environments
| Environment | Base URL | Description |
|---|---|---|
| Local (Wrangler dev) | http://localhost:8789 | Local development and testing environment |
| Production | Deployment-specific | Configured via Cloudflare Workers custom domain / route |
All endpoints are served from a single edge Worker orchestrated with Hono.
Core Reference
Foundational technical specifications, security models, and architectural patterns.
Security Stack
JWT HMAC-SHA256 authentication, single-use refresh token rotation protocol, rate limiting, and security hardening summary.
Error Model
RFC 7807 Problem Details specification, standard error type URIs, validation envelopes, and HTTP status code mappings.
Technical Architecture
Vertical Slice Architecture, Content Repository pattern, programmatic lifecycle hooks, and Cloudflare D1 transaction semantics.
API Endpoints
Technical contracts and schemas for content operations, authentication, media, and dynamic schemas.
Auth Endpoints
/auth/login, /auth/refresh, /auth/logout, feature detection, and password reset flows with Resend/Mailpit.
RBAC Administration API
/api/rbac/* accounts, roles, scoped assignments, and the invitation onboarding lifecycle with anti-escalation guards.
Internal Content API
CRUD endpoints for content records, field alias resolution, hashed field rotation, pending draft lifecycles, and the Trash / purge routes.
Public API
Hardened /api/v1/public/* routes with capability flags, read/write API key splits, filtering, and idempotency guarantees.
Media Engine
Cloudflare R2 and S3-compatible presigned upload URLs (SigV4), confirmation workflows, proxy streaming, and storage metrics.
Seed Builder & Schema Mutation API
Dynamic DDL schema evolution, table creation, column renames, type rebuilding, FTS5 index reconstruction, and orphan column detection.
Extensions
Contracts for dashboard widgets, event triggers, and layout persistence.
Widget API
Aggregation queries, growth metrics, leaderboards, time-series data, and categorical distribution endpoints.
Automations API
Event-driven triggers (create, update, delete, cron) and action executors (webhooks, email dispatch, field mutations).
Dashboard Layout API
Dashboard Composer layouts, role-based scope resolution chains, validation schemas, and auto-cleanup mechanisms.
Official SDKs & APIs
Typed client packages and generated API reference.
Client SDK (@beechcms/client)
Submodule-segregated TypeScript SDK for isomorphic querying, mutation, HMAC webhook verification, and TipTap AST rendering.
MCP Server (@beechcms/mcp)
Stdio AI control plane: agent session and operation search, human approval of risky actions, and additive schema evolution through the Botanical Engine.
TypeScript API (TypeDoc)
Auto-generated TypeDoc reference for all BeechCMS monorepo packages (core, client, forms-react, search-client, widget-sdk, cli).