Ask questions, read stored answers, memos, reviews, exports and publishing.
POST/v1/runs
Submit a question or a map analysis; stored as a run.
scope: run SDK submit_run · submitRun
| Parameter | In | Type | Description |
|---|---|---|---|
prefer | header | string | null | 'wait=<seconds>' (max 120) to wait for the answer |
idempotency-key | header | string | null | Retrying with the same key returns the same job |
Body RunRequest
| Field | Type | Description |
|---|---|---|
question | string | null | A question about parcels (answered by the model gateway, from tool results only) |
analysis | Analysis | null | Or a deterministic map analysis |
parcel | string | null | The parcel the question is about, if any |
as_of | string | null | |
investigation_id | string | null | Add the run to an existing investigation |
curl -H "Authorization: Bearer $HELIOS_KEY" -X POST \
-H 'Content-Type: application/json' -d '{"question": "Comment va Regent Park ?"}' \
"http://localhost:8081/v1/runs"import os
from helios_client import Helios
h = Helios(api_key=os.environ['HELIOS_KEY'], base_url="http://localhost:8081")
h.submit_run({'question': 'Comment va Regent Park ?'})import { Helios } from "@helios/client"
const h = new Helios({ apiKey: process.env.HELIOS_KEY!, baseUrl: "http://localhost:8081" })
await h.submitRun({"question": "Comment va Regent Park ?"})GET/v1/jobs/{job_id}
State of a submitted run.
scope: run SDK get_job · getJob
| Parameter | In | Type | Description |
|---|---|---|---|
job_id * | path | string |
curl -H "Authorization: Bearer $HELIOS_KEY" \
"http://localhost:8081/v1/jobs/job_0123456789abcdef"import os
from helios_client import Helios
h = Helios(api_key=os.environ['HELIOS_KEY'], base_url="http://localhost:8081")
h.get_job('job_0123456789abcdef')import { Helios } from "@helios/client"
const h = new Helios({ apiKey: process.env.HELIOS_KEY!, baseUrl: "http://localhost:8081" })
await h.getJob("job_0123456789abcdef")GET/v1/runs/{run_id}
One stored run: answer, results, findings, versions and hashes.
scope: read SDK get_run · getRun
| Parameter | In | Type | Description |
|---|---|---|---|
run_id * | path | string |
curl -H "Authorization: Bearer $HELIOS_KEY" \
"http://localhost:8081/v1/runs/run_0123456789abcdef"import os
from helios_client import Helios
h = Helios(api_key=os.environ['HELIOS_KEY'], base_url="http://localhost:8081")
h.get_run('run_0123456789abcdef')import { Helios } from "@helios/client"
const h = new Helios({ apiKey: process.env.HELIOS_KEY!, baseUrl: "http://localhost:8081" })
await h.getRun("run_0123456789abcdef")GET/v1/runs/{run_id}/memo
The run as a memo (HTML, PDF or JSON).
scope: export SDK run_memo · runMemo · returns a file unless JSON
| Parameter | In | Type | Description |
|---|---|---|---|
run_id * | path | string | |
format | query | string | |
lang | query | string | null |
curl -H "Authorization: Bearer $HELIOS_KEY" \
"http://localhost:8081/v1/runs/run_0123456789abcdef/memo"import os
from helios_client import Helios
h = Helios(api_key=os.environ['HELIOS_KEY'], base_url="http://localhost:8081")
h.run_memo('run_0123456789abcdef')import { Helios } from "@helios/client"
const h = new Helios({ apiKey: process.env.HELIOS_KEY!, baseUrl: "http://localhost:8081" })
await h.runMemo("run_0123456789abcdef")POST/v1/runs/{run_id}/reviews
Accept, correct or reject a stored run (append-only; the run never changes).
scope: run SDK review_run · reviewRun
| Parameter | In | Type | Description |
|---|---|---|---|
run_id * | path | string |
Body ReviewRequest
| Field | Type | Description |
|---|---|---|
decision * | string | |
reviewer * | string | |
qualification * | string | |
rationale * | string | |
correction | string | null | |
finding_id | string | null |
curl -H "Authorization: Bearer $HELIOS_KEY" -X POST \
-H 'Content-Type: application/json' -d '{"decision": "accept", "reviewer": "Jordan Lee", "qualification": "Registered planner (RPP)", "rationale": "Checked the zoning and envelope against the by-law."}' \
"http://localhost:8081/v1/runs/run_0123456789abcdef/reviews"import os
from helios_client import Helios
h = Helios(api_key=os.environ['HELIOS_KEY'], base_url="http://localhost:8081")
h.review_run('run_0123456789abcdef', {'decision': 'accept', 'reviewer': 'Jordan Lee', 'qualification': 'Registered planner (RPP)', 'rationale': 'Checked the zoning and envelope against the by-law.'})import { Helios } from "@helios/client"
const h = new Helios({ apiKey: process.env.HELIOS_KEY!, baseUrl: "http://localhost:8081" })
await h.reviewRun("run_0123456789abcdef", {"decision": "accept", "reviewer": "Jordan Lee", "qualification": "Registered planner (RPP)", "rationale": "Checked the zoning and envelope against the by-law."})GET/v1/runs/{run_id}/reviews
Reviews of a run, oldest first.
scope: read SDK list_reviews · listReviews
| Parameter | In | Type | Description |
|---|---|---|---|
run_id * | path | string |
curl -H "Authorization: Bearer $HELIOS_KEY" \
"http://localhost:8081/v1/runs/run_0123456789abcdef/reviews"import os
from helios_client import Helios
h = Helios(api_key=os.environ['HELIOS_KEY'], base_url="http://localhost:8081")
h.list_reviews('run_0123456789abcdef')import { Helios } from "@helios/client"
const h = new Helios({ apiKey: process.env.HELIOS_KEY!, baseUrl: "http://localhost:8081" })
await h.listReviews("run_0123456789abcdef")GET/v1/investigations/{investigation_id}
An investigation and its runs.
scope: read SDK get_investigation · getInvestigation
| Parameter | In | Type | Description |
|---|---|---|---|
investigation_id * | path | string |
curl -H "Authorization: Bearer $HELIOS_KEY" \
"http://localhost:8081/v1/investigations/inv_0123456789abcdef"import os
from helios_client import Helios
h = Helios(api_key=os.environ['HELIOS_KEY'], base_url="http://localhost:8081")
h.get_investigation('inv_0123456789abcdef')import { Helios } from "@helios/client"
const h = new Helios({ apiKey: process.env.HELIOS_KEY!, baseUrl: "http://localhost:8081" })
await h.getInvestigation("inv_0123456789abcdef")GET/v1/runs/{run_id}/export
The run's area and parcels (GeoJSON, KML) or its underwriting workbook (xlsx).
scope: export SDK run_export · runExport · returns a file unless JSON
| Parameter | In | Type | Description |
|---|---|---|---|
run_id * | path | string | |
format | query | string | |
lang | query | string | null |
curl -H "Authorization: Bearer $HELIOS_KEY" \
"http://localhost:8081/v1/runs/run_0123456789abcdef/export"import os
from helios_client import Helios
h = Helios(api_key=os.environ['HELIOS_KEY'], base_url="http://localhost:8081")
h.run_export('run_0123456789abcdef')import { Helios } from "@helios/client"
const h = new Helios({ apiKey: process.env.HELIOS_KEY!, baseUrl: "http://localhost:8081" })
await h.runExport("run_0123456789abcdef")POST/v1/investigations/{investigation_id}/publish
Publish the investigation to Notion or SharePoint (updated in place on republish).
scope: export SDK investigation_publish · investigationPublish
| Parameter | In | Type | Description |
|---|---|---|---|
investigation_id * | path | string | |
target * | query | string | |
lang | query | string | null |
curl -H "Authorization: Bearer $HELIOS_KEY" -X POST \
"http://localhost:8081/v1/investigations/inv_0123456789abcdef/publish?target=notion"import os
from helios_client import Helios
h = Helios(api_key=os.environ['HELIOS_KEY'], base_url="http://localhost:8081")
h.investigation_publish('inv_0123456789abcdef', target='notion')import { Helios } from "@helios/client"
const h = new Helios({ apiKey: process.env.HELIOS_KEY!, baseUrl: "http://localhost:8081" })
await h.investigationPublish("inv_0123456789abcdef", { target: "notion" })GET/v1/investigations/{investigation_id}/memo
The whole investigation as one memo.
scope: export SDK investigation_memo · investigationMemo · returns a file unless JSON
| Parameter | In | Type | Description |
|---|---|---|---|
investigation_id * | path | string | |
format | query | string | |
lang | query | string | null |
curl -H "Authorization: Bearer $HELIOS_KEY" \
"http://localhost:8081/v1/investigations/inv_0123456789abcdef/memo"import os
from helios_client import Helios
h = Helios(api_key=os.environ['HELIOS_KEY'], base_url="http://localhost:8081")
h.investigation_memo('inv_0123456789abcdef')import { Helios } from "@helios/client"
const h = new Helios({ apiKey: process.env.HELIOS_KEY!, baseUrl: "http://localhost:8081" })
await h.investigationMemo("inv_0123456789abcdef")