The developer API gives programs the same cited analyses as the Helios interface. Every answer is stored as a run that can be exported as a memo. It is the base for the SDKs, the MCP server and the Slack, Teams and Notion connectors (roadmap M8).
- Contract: openapi-v1.json (OpenAPI 3.1), generated from the code by
python -m helios openapi --out docs/api/openapi-v1.json. A test fails when the committed contract and the code differ. - Documentation portal:
/portal/on a running server (reference, examples in curl, Python and TypeScript, guides), built bypython -m helios portal --out site(DM-132). - Interactive docs:
/v1/docson a running server. - Example (Python standard library only): examples/v1_quickstart.py.
- Decision: DM-111 in the schema decision log.
- Webhooks: webhooks.md (signed
run.completed/run.failed/monitor.changedevents, Zapier, Make, Power Automate). - Branded reports:
PUT /v1/branding(admin: display name, PNG or JPEG logo up to 200 KB, footer, accent colour);POST /v1/reports(exportscope) for a parcel (sections facts, zoning, condition, compliance, value, risk) or a completed portfolio, returningreport_urlandexpires_at(1-30 days); the link needs no key and returns 410 once expired. Internal-only figures are withheld and the Helios credit and sources stay on every report (M10 A8). - Search:
POST /v1/searchwith a plain-languagequery(parsed by fixed rules, English and French; the parsed filters and any words not understood are returned) orfilters(Toronto apartment buildings: RentSafeTO score, declared sprinklers or fire alarm, Fire Code violation items, by-law investigations, notices or orders, year built, units, storeys; Montréal lots: year built, units, storeys, use; neighbourhood, radius or polygon). Saved searches:POST,GET,DELETE /v1/searches(M10 A7). - Portfolios:
POST /v1/portfolioswith CSV text (anaddressorparcelcolumn, optionalref) or JSON rows, up to 5,000; resolved in the background as matched, ambiguous (candidates listed), duplicate or not found, never guessed; then facts, condition, compliance and value on each matched parcel;GET /v1/portfolios/{id}/results?format=json|csv|geojson|xlsx(exportscope);portfolio.completedwebhook. About 0.6 s per address on the demo machine (M10 A6). - Monitors:
POST /v1/monitorson a parcel, an area (radius or polygon, up to 100 parcels) or a portfolio (up to 500 matched parcels) with thresholds (material report sections, building-part level change, new municipal investigation or compliance flag) andfrequency_days;GET,DELETE. Operators schedulepython -m helios monitor run-due, which checks due monitors and deliversmonitor.changed(M10 A5). - Exports:
GET /v1/runs/{id}/export?format=geojson|kml|xlsx(area and parcels; underwriting workbook with live formulas) andGET /v1/parcels/{ref}/export(DM-126). - SDKs: sdk/python and sdk/typescript, generated from the contract by
python -m helios sdk --out sdk(DM-127). - Agents: mcp.md (Helios as an MCP server for Claude Desktop, Claude Code and other MCP clients).
Keys#
python -m helios keys create --tenant acme-capital --name "underwriting team" --scopes read,run,export
python -m helios keys list [--tenant acme-capital]
python -m helios keys revoke KEY_ID
Or from the interface: the Developers page (code icon in the side rail) signs in with an
administrator key (scope admin, created by an operator with --scopes admin,read). It
lists, creates and revokes the organisation's other keys, shows 30 days of usage and a
quickstart, and says which sources the API shares. The same actions are GET/POST /v1/keys,
POST /v1/keys/{id}/revoke and GET /v1/usage; an admin key acts only on its own tenant,
cannot create admin keys and cannot revoke itself (DM-112).
A token reads hk_<key_id>_<secret>. The secret is printed once and stored only as a
SHA-256. Send it as Authorization: Bearer hk_.... The key names the tenant: a key never
reads another tenant's investigations, runs or jobs. A tenant that has keys can no longer
be reached through the interface routes (?tenant=).
| Scope | Allows |
|---|---|
read |
/me, /sources, parcel search, report, facts, risk, condition, forecast, area, screening, market, massing; reading runs and investigations |
run |
POST /runs and GET /jobs/{id}; POST and DELETE /monitors |
export |
memos of runs and investigations (HTML, PDF, JSON) |
admin |
the tenant's keys and usage (/v1/keys, /v1/usage); created only with the CLI |
Quotas per key (defaults): 60 requests a minute, 2,000 a day, 200 runs a day. Responses
carry RateLimit-Limit, RateLimit-Remaining and X-Daily-Requests-Remaining. Past a
limit the answer is 429 with Retry-After. Deployed, the WAF limits by IP first.
Sandbox keys#
python -m helios keys create --sandbox --scopes read,run makes a key limited to the golden parcels
(DM-128). It is meant for trying the API, the SDKs and the MCP server:
- Parcel routes accept only the golden parcels' ids, and parcel search returns only those parcels.
- Map analyses must be within 1 km of a golden parcel.
- A run must name a golden parcel or analyse near one.
- Neighbourhood and city routes stay open.
- Quotas are 20 requests per minute, 300 per day and 20 runs per day.
GET /v1/me lists the golden parcels. A refusal returns 403 with that list.
Runs#
POST /v1/runs takes either a question (answered by the model gateway from tool results
only) or an analysis (point, area or volume, without a model), plus optional
parcel, as_of and investigation_id.
- By default the answer is
202with a job; pollGET /v1/jobs/{job_id}untilsucceededorfailed.Locationnames the job. Prefer: wait=60(at most 120 seconds) waits and answers200when the run finishes in time.Idempotency-Key: <8-128 characters>makes a retry return the same job. The same key with a different request is409.- A finished job links the run (
/v1/runs/{id}) and its memo (/v1/runs/{id}/memo?format=pdf). Runs start asdraft/needs_review, with a claim class per finding.
Errors are RFC 9457 problem details (application/problem+json).
Licence gate#
A source card with external_use: false may inform screening inside Helios but is never
redistributed through this API. For now these are the CMHC Rental Market Survey, the CREA
MLS® HPI and the two TRCA layers, whose terms are not confirmed in writing. GET /v1/sources
lists every card with its external_use flag.
- A card built only on such sources becomes
{"card": "withheld", ...}(the value forecast, for example). - A part attributed only to such sources is withheld in place:
state: "not_licensed",withheld: true, values cleared. Examples are the report's hazards and market context sections, the flood and conservation gates (unknown), and market demand. - Cards that name sources only once, at the top, have explicit rules:
- the area hazard share and the screening hazard flag are withheld;
- risk items touching an internal source are withheld, and the counts and reading are recomputed;
- underwriting is withheld unless the caller gives
monthly_rentandvacancy_pct. - Whenever something was withheld, the response has a
licenceobject naming the sources.
The gate runs before the language model reads a tool result, so an API answer cannot quote a
withheld figure, and the stored run and its memo hold only what the caller may receive. Known
limit: aggregates such as the risk exposure index are recomputed with the withheld items as
unknown, and the screening still excludes hazard parcels from its ranking.
What it does not do yet#
- Published packages on PyPI and npm (I4); the SDKs are in
sdk/meanwhile. - A public documentation portal (I4);
/v1/docsserves the reference meanwhile.
