Compute API

Every calculator. One JSON API.

The same verified engines behind the CivilTech Studio modules, callable from your scripts, spreadsheets and pipelines. camelCase JSON in, flat snake_case results out — with code references and an honest verdict on every response.

One endpoint per module

Every calculator module is a JSON endpoint: slabs, walls, connections, foundations, BOQ. Same engines, same 50-benchmark public verification suite.

Honest verdicts

Flat JSON results with explicit safe_overall / governing_check fields and code-clause citations — no silent unsafe passes.

Tier-based keys

Authenticated with bearer keys, rate-limited per tier. Same quotas as the in-app calculators.

Quick start

curl -X POST https://civiltechstudio.com/api/calculate/retaining-wall-rc \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "IS456", "height": 4.5, "stemThickness": 350,
    "baseThickness": 450, "toeLength": 0.9, "heelLength": 1.8,
    "unitWeight": 18, "frictionAngle": 30, "surcharge": 10, "sbc": 150
  }'

The response mirrors the module UI: safe_overall, governing_check, per-check utilisations, code_refs and engineer-readable notes. Endpoint paths match the module URLs (/api/calculate/<module-id>); request fields match each module's inputs — see the module reference for the catalog.

Get an API key

API access is included on the Professional, Business and Enterprise tiers — create a key under Profile → API Keys. On another plan, or need higher limits? Email us at hello@civiltechstudio.com with what you're building.