API-first custom service boundary
Pattern
When structured JSON configuration is not enough, a developer can implement normal code in an isolated service/container and expose stable API endpoints.
Contract
A service version can declare endpoint keys/routes, input/output JSON schemas, required permission, execution mode, timeout, network egress policy, image digest, SBOM, and release fingerprint.
Invocation
Pages, workflows, API routes, and AI/MCP actions bind to a stable endpoint key. The platform authorization layer remains in front of the custom code.
Isolation
Custom service code does not receive BuildWithHQ core source merely because it runs near the app, and external clients do not receive unrestricted SQL access. The contract around custom code is governed even though the code itself can use normal languages, libraries, and SDKs.