Benefit analytics, in every automation.
Attribution API. Each solution gets an API key. Your automation sends the events of every instance it handles; Chironis folds them into instances, measures each against the locked baseline, and produces the quarterly benefit statements the share is calculated from. Events are idempotent, order-independent and hash-chained, and the client can see and export every one.
The examples use process F1. Open this guide from your solution's Build tab and they'll use its real process code and step keys. Step keys come from the process's approved map (F1.S1, F1.S2…) and never change once it's approved.
Before you start
- The client's IT lead creates a test key on the solution's Build tab (its events are never counted) — and rotates it whenever it may have been shared. The IT lead can revoke any key at any time.
- On the same tab, “Send a test event” shows what a working instance looks like, under What arrived.
- Send events from your automation (below). Watch them arrive under What arrived on the same tab — test events show there, marked Test.
- Before go-live, the consultancy's lead analyst issues a live key — swap to it. Only instances completed after the client confirms go-live count.
Authentication
Send Authorization: Bearer chx_live_…. The key decides the workspace and solution — never the URL. Test keys (chx_test_…) are excluded from benefit.
curl -s https://chironis.ai/api/v1/health -H "Authorization: Bearer $CHIRONIS_API_KEY"
Send events
curl -s -X POST https://chironis.ai/api/v1/events \
-H "Authorization: Bearer $CHIRONIS_API_KEY" -H "Content-Type: application/json" \
-d '{"event_id":"stmt-031-start","type":"instance.started","process_code":"F1",
"instance_id":"STMT-2026-10-031","timestamp":"2026-10-01T09:00:00Z"}'
# batch (≤ 500)
curl -s -X POST https://chironis.ai/api/v1/events -H "Authorization: Bearer $CHIRONIS_API_KEY" \
-H "Content-Type: application/json" -d @events.json # {"events":[…]}- 202 accepted · 200 duplicate (same event_id, same payload) · 409 event_id reused with a different payload · 422 invalid · 429 rate limited — honour Retry-After.
- Types: instance.started, instance.completed, instance.failed, human.intervention, exception.raised, step.completed. Use the frozen step keys (e.g. F1.S2) from the approved map.
- Money fields need a currency; they count towards a share only with an evidence_ref and client verification. Capacity is measured, never self-reported.
- Instances with no event for the solution's timeout are marked timed out and excluded.
TypeScript SDK
No dependencies; needs a global fetch (Node 18+, Deno, Bun or a browser). Install it straight from Chironis:
npm install https://chironis.ai/api/sdk/chironis-benefits-0.1.0.tgz # or: pnpm add https://chironis.ai/api/sdk/chironis-benefits-0.1.0.tgz # or: yarn add https://chironis.ai/api/sdk/chironis-benefits-0.1.0.tgz
Not using npm? Copy the single file: chironis-benefits.mjs with its types chironis-benefits.d.ts.
import { Chironis } from "@chironis/benefits";
const chx = new Chironis({ apiKey: process.env.CHIRONIS_API_KEY!, baseUrl: "https://chironis.ai" });
const run = chx.run({ processCode: "F1", instanceId: statement.ref });
run.start();
run.step("F1.S2", { handledBy: "automation", durationMs: 4_200 });
run.human("F1.S2", { durationMs: 38 * 60_000, reason: "variance review" });
run.complete({ outcome: "success", revenueGenerated: 412.5, currency: "GBP",
evidenceRef: "INS-REM-2026-07-114", runCost: 0.38 });
// events are batched every 2 s and retried on 429/5xx (idempotent); a long-running
// service can carry on — a script ends by sending what's queued and stopping the timer:
await chx.close();Event fields
| Field | When | What it is |
|---|---|---|
| event_id | always | Your unique id for this event (a ULID or UUID). Sending it again is safe — a duplicate is ignored. |
| type | always | instance.started · instance.completed · instance.failed · human.intervention · exception.raised · step.completed |
| process_code | always | The process the automation runs, e.g. F1 — one of the processes the solution covers. |
| instance_id | always | Your reference for this case or document, the same on every event of one instance. An instance belongs to one process: when a solution serves several, give each process's instance its own id (the same document going through two processes is two instances). |
| timestamp | always | When it happened, ISO 8601 with a time zone. Up to 5 minutes ahead and 400 days back. |
| step_ref | step events | The frozen step key from the approved map, e.g. F1.S4 (listed on the solution's Build tab). A step not on the map is accepted but flagged, and isn't measured. |
| handled_by | step events | automation · human · hybrid |
| duration_ms | optional | How long the step took. Human minutes are what's measured against the baseline. |
| outcome | completed / failed | success · partial · failed · rejected · cancelled |
| revenue_generated / cost_saved | optional | Money the instance made or saved. Needs currency; counts towards a share only with evidence_ref and client verification. |
| currency | with money | The workspace's currency (e.g. GBP). |
| evidence_ref | with money | Where the client can check it — an invoice or remittance reference. |
| benefit_line | optional | The business case's cash line this money counts against (its tracking key), looked up in the case of this event's process_code — two processes' cases can use the same key. |
| run_cost | optional | What this instance cost to run (model tokens, licences) — shown against the benefit. |
| metadata | optional | Up to 4 KB of your own context. Email addresses are removed. |
Responses and errors
| Status | Code | What to do |
|---|---|---|
| 202 | accepted | Stored. Check warnings: late, unknown_step_ref, unknown_benefit_line, money_without_evidence_not_share_eligible, pii_redacted. warning_details says in words what to fix — for unknown_benefit_line, the cash-line keys that process's business case does have. |
| 200 | duplicate | Same event_id and payload as before — nothing changed. Safe to ignore. |
| 409 | idempotency_conflict | That event_id was already used with a different payload. Use a new id. |
| 422 | invalid_event | A field is missing or wrong — the message names it. |
| 422 | unknown_process_code | The solution doesn't cover that process (or no longer does). Check the Build tab for its codes. |
| 422 | instance_process_mismatch | That instance_id was already sent under another process_code. An instance belongs to one process — give this one its own id. |
| 422 | currency_required / currency_mismatch | Money needs the workspace's currency. |
| 422 | timestamp_in_future / timestamp_too_old | Clock skew or replaying very old data. |
| 401 | — | Missing, revoked or expired API key. |
| 429 | rate_limited | Slow down and retry after Retry-After seconds. Retries are safe. |
A batch always returns 202 with a result per event — check each one's status.
Metrics
curl -s "https://chironis.ai/api/v1/solutions/SOL-F1/metrics?from=2026-07-01&to=2026-10-01&granularity=month" \ -H "Authorization: Bearer $CHIRONIS_API_KEY"
Connect Claude, Copilot or Gemini
Chironis is an MCP server at https://chironis.ai/api/mcp (Streamable HTTP). An assistant connected to it can look things up in one workspace — the same as Ask Chironis, with your access — and propose changes (or hand over meeting notes) that wait under Proposed changes until you apply them. Each proposal is marked with the assistant that made it.
Most assistants use a personal access token: create one under Account → AI assistants, for one workspace, and choose whether it may propose changes as well as read. Claude.ai connects with OAuth instead — you sign in and choose the workspace.
Claude Code
claude mcp add --transport http chironis https://chironis.ai/api/mcp \ --header "Authorization: Bearer chp_…your token…"
Claude.ai and Claude Desktop
Settings → Connectors → Add custom connector → URL https://chironis.ai/api/mcp. Claude registers itself, sends you to Chironis to sign in, and asks which workspace to use. Disconnect it any time from your account.
GitHub Copilot (VS Code) and Copilot Studio
// .vscode/mcp.json
{
"servers": {
"chironis": {
"type": "http",
"url": "https://chironis.ai/api/mcp",
"headers": { "Authorization": "Bearer ${input:chironis-token}" }
}
},
"inputs": [{ "id": "chironis-token", "type": "promptString", "description": "Chironis access token", "password": true }]
}In Copilot Studio, add an MCP server tool with the same URL and API-key authentication: header Authorization, value Bearer chp_….
Gemini CLI
// ~/.gemini/settings.json
{
"mcpServers": {
"chironis": {
"httpUrl": "https://chironis.ai/api/mcp",
"headers": { "Authorization": "Bearer chp_…your token…" }
}
}
}What it can do
- Read: the process catalogue and each process's figures, evidence and map; systems; governance; recommendations; business cases; what-ifs; each process's error risk and kinds of work, the portfolio by risk band (
get_error_risk,list_error_risk,get_process_capabilities); how a solution is doing against its error threshold (get_solution_build) — never individual salaries or who said what in a survey. - Propose (
propose_changes,submit_notes): systems and which process uses them, AI tools in use, findings, processes, departments, role-band headcounts, people, figures, and business-case lines, costs and measures;draft_business_caseproposes a whole case from the evidence, every figure citing its source. Nothing is saved until you apply it; figures it proposes never displace stronger evidence. - Ask for a task (
propose_task_request, for client admins, process owners and the team): what needs doing, whether anyone does it today, and what happens if it goes wrong. Nothing is asked for until you confirm it; then it reaches the team as a request.