Helios can POST a signed JSON event to your URL when a run submitted through the developer
API finishes. Your systems then react without polling GET /v1/jobs/{id}. Decision: DM-113.
Register an endpoint#
Use the Developers page (Webhooks panel) or an administrator key:
POST /v1/webhooks {"url": "https://hooks.example.com/helios", "events": ["run.completed", "run.failed"],
"description": "Deal pipeline"}
GET /v1/webhooks the tenant's endpoints and their last delivery
POST /v1/webhooks/{id}/test queue a signed webhook.test event
POST /v1/webhooks/{id}/disable
GET /v1/webhooks/{id}/deliveries
The answer to the registration holds the signing secret (whsec_...). It is shown once.
Destinations must be public HTTPS hosts. Helios refuses URLs with credentials, plain HTTP,
and hosts that resolve to private, loopback, link-local or reserved addresses (for example
the cloud metadata address). It checks again before every delivery and does not follow
redirects. For local development only, HELIOS_WEBHOOKS_ALLOW_LOCAL=1 lifts these checks.
Each organisation may have 10 active endpoints.
Events#
| Type | When |
|---|---|
run.completed |
a run submitted with POST /v1/runs finished |
run.failed |
it could not be completed (the error is in data.error) |
portfolio.completed |
a portfolio finished resolving and analysing: data.summary counts rows by status, data.portfolio links to it |
monitor.changed |
a scheduled check of one of your monitors crossed a threshold: data.triggered lists each (report_material_change, condition_level_change, new_compliance_record, new_compliance_flag), with data.monitor to read the monitor |
webhook.test |
you pressed "Send test" or called /test |
{
"type": "run.completed",
"timestamp": "2026-11-21T16:15:33+00:00",
"data": {
"job_id": "job_7b221b2a92e144e1", "status": "succeeded",
"run_id": "run_931d8d625cec3940", "investigation_id": "inv_...",
"run": "/v1/runs/run_931d8d625cec3940",
"memo": {"pdf": "/v1/runs/run_931d8d625cec3940/memo?format=pdf", "html": "..."},
"answer": "Drawn volume: ... (first 500 characters)", "answer_source": "helios_template",
"publication_status": "draft",
"findings": [{"result_kind": "massing", "claim_class": "derived", "subject": "..."}]
}
}
An event carries ids, links and a short answer that has already passed the licence gate. The full run and its memo stay behind your API key.
Verify a delivery#
Helios follows Standard Webhooks. Every POST has these headers:
webhook-id:msg_..., the same on every retry of one event. Use it to ignore duplicates.webhook-timestamp: Unix seconds. Reject anything older than five minutes.webhook-signature:v1,<base64 HMAC-SHA256>of<webhook-id>.<webhook-timestamp>.<raw body>. The HMAC key is the base64 part of your secret.
Answer with a 2xx status within 10 seconds, and do the work after answering. Any other
answer is retried after 1 min, 5 min, 30 min, 2 h and 6 h. After that the delivery is
marked dead. An endpoint with 20 dead deliveries in a row is disabled.
examples/webhook_receiver.py is a complete receiver written with the Python standard library only. The Standard Webhooks libraries (Python, JavaScript, Go, Java and others) verify the same signature. A test checks Helios against the specification's published test vector.
Zapier, Make and Power Automate#
These tools receive webhooks without any Helios connector:
- Zapier: trigger Webhooks by Zapier → Catch Hook. Paste its URL as an endpoint, then
press "Send test" so Zapier learns the fields (
data.run_id,data.memo.pdf, ...). - Make: module Webhooks → Custom webhook. Paste its address, then "Send test".
- Power Automate: trigger When an HTTP request is received. Paste the generated URL. Generate the schema from a test event.
To fetch the full run or its PDF in a later step, call GET /v1/runs/{run_id} or
/v1/runs/{run_id}/memo?format=pdf with an Authorization: Bearer hk_... header. These
tools do not check the signature by default; a URL they generate is hard to guess, but
check the signature where the tool allows it (a code step).
Delivery worker#
The API process sends due deliveries every 5 seconds in a background thread.
HELIOS_WEBHOOK_WORKER=0 turns this off, for example on extra replicas. Several workers
are safe: rows are claimed with FOR UPDATE SKIP LOCKED, one delivery per transaction.
