OpenAPI 3.1 Reference · 24 Engine Endpoints · https://gridforge-engine.fly.dev
HTTP API & MCP endpoint reference
Every customer-callable /v1/* route, /health, and /mcp served by https://gridforge-engine.fly.dev. Unit weights come straight from gridforge/api/metering.py and /reference/tools.json.
Endpoint Matrix
Worked examples: synthetic reference hallSYNTHETIC REFERENCE DATA — every request and response in this file was generated deterministically by running the real GridForge Python engine against examples/intake/reference_hall.json. Not a measurement of any customer asset.
| Method & Path | Auth Tier | Units | TS SDK / MCP | Summary |
|---|---|---|---|---|
| POST /v1/qualify | Public (no key) | 0 (free) | client.qualify() gridforge_qualify | Free. |
| POST/GET /v1/estimate | Public (no key) | 0 (free) | client.estimate() gridforge_estimate | Free, no API key, never metered. |
| POST /v1/screen | Bearer gfk1.* | 1 | client.screen() gridforge_screen | Density Screen. |
| POST /v1/compare | Bearer gfk1.* | 1 | client.compare() gridforge_compare | Time-to-Power scenario comparison. |
| POST /v1/study | Bearer gfk1.* | 5 | client.study() gridforge_study | Capacity & Density Envelope Study. |
| POST /v1/portfolio | Bearer gfk1.* | 1 / hall | client.portfolio() gridforge_portfolio | Rank halls. |
| POST /v1/proposal | Bearer gfk1.* | 2 | client.proposal() gridforge_proposal | A priced proposal for a named engagement, built from what the engine already found. |
| POST /v1/deck | Bearer gfk1.* | 3 | client.deck() | Walkthrough deck for a hall. |
| POST /v1/diff | Bearer gfk1.* | 2 | client.diff() gridforge_diff | What moved, and which input moved it. |
| POST /v1/spec | Bearer gfk1.* | 3 | client.spec() gridforge_spec | Turn a binding constraint into a tender-ready technical specification: every numeric requirement derived from the capacity model and naming the constraint it came from, quoted at the site's own conditions rather than a manufacturer's reference condition, plus a machine-readable response schedule. |
| POST /v1/bids | Bearer gfk1.* | 2 | client.bids() gridforge_bids | Compare supplier responses against the capacity model: what each bid does to the energisation date and to deployable rack count, not only what it costs. |
| POST /v1/power/assess | Bearer gfk1.* | 5 | client.powerAssess() gridforge_power_assess | The Power Readiness Case: what is stopping this site reaching the target capacity, what fixes it, what that costs, what it does to the schedule, and what to do next. |
| POST /v1/power/deploy/assess | Bearer gfk1.* | 5 | client.powerDeployAssess() gridforge_power_deploy_assess | The BTM Power Deployment Assessment: given a real load profile and the generation/BESS units actually on the table, compares GRID ONLY, GRID + GENERATION, GRID + BESS and GRID + BESS + GENERATION under one deterministic N/N+1/N+2/2N contingency test each, with CAPEX and lead time read from whatever the request declared (never priced at zero when a unit is uncosted — that architecture is marked not-yet-comparable instead). |
| POST /v1/power/deploy/spec | Bearer gfk1.* | 3 | client.powerDeploySpec() gridforge_power_deploy_spec | A tender-ready technical specification for a BTM architecture's generation and storage units: every numeric requirement (nameplate rating, availability/forced-outage rate, start-up time, ramp rate, fuel, BESS power/energy/SOC window) derived from the declared unit and traceable to it, plus a weighted evaluation matrix and a machine-readable response schedule. |
| POST /v1/power/deploy/bids | Bearer gfk1.* | 2 | client.powerDeployBids() gridforge_power_deploy_bids | Rank supplier responses to a BTM tender package (gridforge_power_deploy_spec) with the same comparison rules as gridforge_bids: mandatory non-compliance is never outranked by price, incomplete responses are disqualified not guessed at, and installation method and evidence quality are left to an engineer. |
| GET /v1/version | Public (no key) | 0 (free) | client.version() | What this engine serves, how it meters, and its provenance. |
| GET /v1/platforms | Public (no key) | 0 (free) | client.platforms() | The rack library (the engine's platform library), short form. |
| GET /v1/intake/template | Public (no key) | 0 (free) | client.intakeTemplate() | The blank intake document with every field. |
| GET /v1/calibration | Public (no key) | 0 (free) | client.calibration() | How far the model has been reconciled against instrumented sites. |
| GET /v1/calibration/residuals | Public (no key) | 0 (free) | client.calibrationResiduals() | Aggregate residual statistics over approved observation records only. |
| GET /v1/tools | Public (no key) | 0 (free) | client.tools() | The tool catalogue: OpenAI function-calling shape and MCP shape, the rate card and the auth rule. |
| GET /v1/usage | Bearer gfk1.* | 0 (free) | client.usage() | This key's metered usage for the current UTC month. |
| GET /health | Public (no key) | 0 (free) | client.health() | Liveness check. |
| POST /mcp | Per-tool tier | 0 (free) | client.mcpCall() | Model Context Protocol over JSON-RPC 2.0. |