API Reference
API routes available for self-hosted COREY deployments.
The API reference is intended for self-hosted deployments. Local-first review works without these routes.
Health
GET /api/health: app status, upload limit, and whether S3-backed model storage is available
Models
GET /api/models: list stored modelsPOST /api/models: upload IFC bytes. Usex-model-namefor the display nameGET /api/models/[id]: read model metadataGET /api/models/[id]/file: download model bytesPOST /api/models/[id]/writeback: export edited IFC bytes for a server model
Model routes return 503 when S3-compatible storage is not configured.
Drafts
GET /api/models/[id]/draftPUT /api/models/[id]/draftDELETE /api/models/[id]/draft
Rules And Compute
GET /api/rules/config: read the current user's validation configPUT /api/rules/config: save a validation configPOST /api/rules/evaluate: evaluate validation rows against a configGET /api/rule-templates: list available validation templatesGET /api/rule-templates/[id]: read one validation templateGET /api/rule-templates/[id]?format=config: download a template configGET /api/rule-templates/[id]?format=source: download a template source file when availablePOST /api/data-table/excel/exportPOST /api/data-table/excel/import
Rules config and template config use the version 2 clause model documented in Clause data model.
Upload Limits
COREY_MAX_MODEL_BYTES controls the maximum accepted upload size. The default is
250 MiB.