This page documents the endpoints an ANAX Standard subscriber calls directly. It describes the API as deployed. Where a capability is not implemented, this page says so rather than omitting it.
| Service | Base URL | Authentication |
|---|---|---|
| X-Layer | provided at on-boarding | API key |
| Canal | provided at on-boarding | API key; two endpoints are public |
X-Layer. Every endpoint requires an API key except GET /health, GET / and the two public verifiers (GET /chain/public-verify/:chr_id, GET /chain/public-latest-signed). X-Layer reads the key from either header. The scheme word is case-sensitive: bearer <key> (lower case) is read as an invalid key and refused with 401 Invalid or inactive API key.
X-API-Key: sk-canal-...
Authorization: Bearer sk-canal-...
Canal. Every endpoint requires an API key except the two public ones (GET /canal/verify/:seal_id, GET /canal/frameworks) and GET /health. Canal reads the key from X-API-Key only. An Authorization: Bearer header is ignored, and the call is refused exactly as if no key had been sent: 401 {"ok":false,"reason":"X-API-Key header required"}.
X-API-Key: sk-canal-...
Keys are issued against a Canal subscription. X-Layer is an add-on: a key must already be an active Canal key before X-Layer can be activated on it.
The responses below are X-Layer's ({"status": "<word>"}). Canal returns {"ok": false, "reason": "…"}; a named Canal fault also carries an error word beside reason — see the Canal section.
| Status | status | Meaning |
|---|---|---|
| 401 | UNAUTHORIZED | No key supplied (message "X-API-Key header required"), or the key is unknown or inactive ("Invalid or inactive API key"). Same status word, different message. A revoked key and a key that never existed return the same response. If a key that used to work now gets this 401, it may have been revoked; contact ANAX rather than re-typing it. |
| 403 | SUSPENDED | The key exists but is suspended. |
| 403 | SUBSCRIPTION_EXPIRED | The licence period has ended (the response carries expired_at), or the key's tier requires a licence period and none is on record (message "No active license on record", no expired_at). |
| 403 | UPGRADE_REQUIRED | The key is valid but lacks the entitlement for this endpoint. The response carries current_tier and upgrade_url. |
| 403 | FORBIDDEN | Owner scope: the caller may only read its own records. |
Key lookups are cached for five minutes. A newly-activated entitlement can therefore take up to five minutes to take effect on a key that was used immediately before activation.
This table is X-Layer's. Canal answers GET /health only; Canal's GET / is not a route and returns the framework default 404 text/html Cannot GET / (see Conventions).
| Endpoint | Auth | Returns |
|---|---|---|
GET /health | none | {"status":"OK"} — liveness only. The engine roster is deliberately not exposed here. |
GET / | none | Service name, version and endpoint index. |
| Endpoint | Entitlement | Notes |
|---|---|---|
POST /sentinel/baseline | X-Layer | Creates a behavioural baseline for a client_id / system_id / model_id triple. |
POST /sentinel/evaluate | X-Layer | Evaluates one decision against the baseline. Returns 403 when the result is BLOCKED. |
GET /sentinel/drift/:source | X-Layer | Window-based drift for one system: 7-day against 30-day clearance, computed from sealed Canal crossings. |
GET /client/drift | X-Layer | Drift across every active system owned by the caller, plus a worst-case aggregate. Systems with no scan return INSUFFICIENT_DATA, never a passing state. |
GET /intelligence/:source (X-Layer) runs the full sequence for one system and returns a single object: Sentinel-X drift, the Predictive-X forecast, the Prism-X narrative, and the Fusion-X unified state, with the underlying drift windows attached.
| Field | Values |
|---|---|
prediction | DRIFT_IMMINENT (0–7 days) · DRIFT_LIKELY (7–21 days) · WATCH_CLOSELY · STABLE |
trend | SEVERE_RISK · HIGH_RISK · WATCH · STABLE |
risk_level | CRITICAL · AT_RISK · STABLE |
Cannot-assess is an explicit state, not a passing one. Where there is too little governed decision history, or the history is too noisy for a confident reading, the response carries INSUFFICIENT_DATA or INSUFFICIENT_CONFIDENCE with confidence: 0 and assessable: false. These propagate unchanged through the forecast and the narrative. They must not be read as an all-clear.
No endpoint returns a calibrated probability. Forecasts are weighted bands with a stated horizon.
POST /anassa/brief (X-Layer) generates a board-level strategic brief from the caller's own governance record. Rate-limited independently of the other endpoints.
| Endpoint | Entitlement | Notes |
|---|---|---|
POST /chain/append | X-Layer + Chain | Runs the engine sequence, seals the result as a report with a SHA-256 content hash, and appends it to the caller's chain. Returns report_id, link_hash, previous_link_hash and chain_position. This endpoint seals a link; it does not verify the chain. client_id in the body is optional and, if sent, must equal the key's own client_id; a different value is refused 403 CLIENT_MISMATCH. A key without its own client_id is refused with 403 CLIENT_IDENTITY_MISSING; contact support. |
GET /chain/verify/:client_id | X-Layer + Chain | Recomputes every link's hash from its stored basis and checks that each link points at its predecessor. |
GET /chain/public-verify/:chr_id | public | Verifies one Chronicle Chain link by its CHR- reference. No key required; mounted before the auth middleware, by design. Returns chr_id, valid, sealed_at (RFC 3339 UTC with milliseconds, Z), chain, wire_seal and attestation. wire_seal is either the VA's ES256 seal (present: true) or present: false with PRE_SIGNING_EXISTENCE_ONLY for links sealed before signing; see x-layer-api/docs/WIRE_SEAL_SPEC_v0.2.md. CORS: Access-Control-Allow-Origin: *. wire_seal: present: true with the VA's ES256 seal for links sealed from 2026-10-25 (first signed link CHR-MJ3VVXKW-O4GKMYOT, position 4, 2026-10-25T15:18:58.746Z, kid 8nQSrVyO…); every earlier link returns present: false PRE_SIGNING_EXISTENCE_ONLY permanently — append-only, never re-signed. Signed links attest the VA sealed these facts; earlier links attest existence and order only. Independently verifiable as a seal only (WIRE_SEAL_SPEC §11). |
GET /chain/public-latest-signed | public | Newest VA-signed link: {latest: {chr_id, sealed_at, kid, canary}, status, signing_enabled}. canary is a bare boolean, derived server-side from the link's tenant record (true only for ANAX's own synthetic wire-seal canary tenant); nothing else about the owner is emitted. If that record cannot be read the endpoint answers 503, never a guessed value. Before any signed link exists: {latest: null, status: "NO_SIGNED_LINK_YET", signing_enabled}. |
Verification returns one of four states, and never reports intact without having checked:
status | Meaning |
|---|---|
CHAIN_INTACT | Every link recomputed and every linkage matched. |
CHAIN_BROKEN | At least one HASH_MISMATCH or BROKEN_LINKAGE, reported with its exact chain position. |
UNVERIFIABLE_LEGACY | Linkage checked, but one or more links predate content-basis storage and cannot be hash-recomputed. |
EMPTY | No links on record. |
If the registry is unreachable the endpoint returns 503 with verified: false and UNVERIFIABLE. It does not assume intact.
⚠ GET /chain/verify/:client_id may also return 403 REFUSED or 503 UNAVAILABLE for a reason concerning ANAX's own authority to perform the read — not the caller's entitlement. A well-entitled client can see either if ANAX's own Mandate is exhausted or unconfigured; it is not a statement about your access.
Scope. GET /chain/verify/:client_id is owner-scoped: a caller may verify only its own chain. X-Layer chain links verify publicly, no key: GET /chain/public-verify/:chr_id (mounted before auth, by design). Four states, not three: 200 valid:true (sealed) · 200 valid:false (does not resolve — a verdict, not an error) · 429 RATE_LIMITED · 503 UNAVAILABLE (a lookup failure, never valid:false). A malformed reference and a well-formed one that does not resolve get the same answer: the same 200 valid:false body, byte for byte, with chr_id: null and the same headers. A Verification Authority does not tell “malformed” from “not found” (no differential error detail). The rate limiter runs first, so an over-limit caller gets 429 whatever it sent. Window: 60 seconds, 60 requests per IP per instance (the real ceiling is 60 × instances) — X-RateLimit-Limit / X-RateLimit-Window / X-RateLimit-Scope are set on every response, 200 through 503, so a caller who never sees a 429 can still read what the limit is. A 429 carries Cache-Control: no-store, and no Retry-After header is sent on any path. The response's attestation block (fixed, compiled-in facts about the verifier, not row data — marked "source": "constant") appears only on 200, on both valid:true and valid:false; 429 and 503 attest nothing. Public verification also exists for Canal crossing seals (below).
POST /agc/assess returns 501 NOT_IMPLEMENTED. The AGC certification engine does not exist, and this endpoint issues nothing and writes nothing.
It previously derived a certification level from fields supplied in the request body and returned a SHA-256-sealed certificate. A certificate minted from the caller's own inputs is not an assessment, and the endpoint was disabled rather than left to look like one. It will return a certificate when the engine exists and every input is derived server-side.
GET /agc/status/:client_id is owner-scoped: a caller may read only its own status (master keys excepted). It answers in one of three states, and an absence is never reported as a grade.
status | HTTP | Meaning |
|---|---|---|
| — (the certificate row) | 200 | A certificate is on record. The stored row is returned as held. |
NO_GRADE_ON_RECORD | 200 | The registry was read and holds no certificate for this client. agc_level is null. |
UNAVAILABLE | 503 | The registry could not be read. agc_level is null. This is a read failure, not a finding about the client. |
Absence is null, never 0. A grade of 0 is a measured verdict; “we could not look” and “we looked and found nothing” are not verdicts at all, and the two are kept distinct so a caller knows whether to retry or to act. No level name is returned beside a null level.
Canal evaluates a set of declared governance attributes about one AI decision — sector, risk class, personal-data flag, criticality, automation level, jurisdiction, and the regulation to cross it against — not the decision's actual content. The decision itself (what it decided, on what input) is never sent to Canal and never sealed; every attribute is caller-asserted, taken as declared and not independently verified by Canal. Canal seals its verdict on those attributes into a hash-chained record, publicly verifiable against the sealed record ANAX holds: the declared attributes and the verdict are covered by the same seal — neither can be changed without invalidating verification. This is detectable tampering, not physical immutability: GET /canal/verify/:seal_id recomputes the hash from the stored basis, so an altered record fails verification rather than silently passing. The crossing is chained when it carries a clearance envelope (system_clearance_id), sealed but unchained otherwise — meta.chain_linked in the response reflects which actually happened, derived from the write itself, not asserted. A subscriber calls Canal directly with an API key. Two endpoints are public and need no account: GET /canal/frameworks (the framework catalogue) and GET /canal/verify/:seal_id (public verification of any seal against the sealed record ANAX holds).
| Endpoint | Auth | Notes |
|---|---|---|
POST /canal/envelope | API key | Declare an AI system and mint its clearance envelope — the first call, prerequisite for a chained/clearing crossing. Returns clearance_id (env_...). Sending system_id / clearance_id is refused 400 (server-derived). |
GET /canal/frameworks | public | The framework catalogue with the tier each one requires. |
GET /canal/verify/:seal_id | public | Public verification of a crossing seal against the sealed record ANAX holds. Returns the sealed governance-attribute record and verdict with secrets removed — never the decision's own content, which Canal was never sent. |
POST /canal/evaluate | API key | Evaluate and seal one crossing from six simple fields — self-serve, and gates on the base tier. For a chained, clearing crossing, first POST /canal/envelope. |
POST /canal/evaluate/full | API key | Evaluate and seal one crossing from a complete canal-crossing-transaction-v2.1 contract object. |
GET /canal/chain/verify/:clearance_id | API key, owner-scoped | Re-derive every link of an envelope's chain and state whether it is intact, broken (where), or contains legacy v1 crossings. Shape in Response shapes. |
GET /canal/chain/export/:clearance_id | API key, owner-scoped | The evidence pack: every crossing's full seal_basis, hashes and per-link integrity, plus the instructions to re-derive it all, under one export_seal. Shape in Response shapes. |
POST /fusion | API key + X-Layer sub | Unified intelligence (Sentinel + Predictive + Prism + Fusion). 403 UPGRADE_REQUIRED without X-Layer. Pure computation — nothing sealed. |
GET /canal/evidence/:seal_id | API key, owner-scoped | Full evidence bundle for a seal you own. 403 on someone else's seal. |
GET /canal/crossings | API key, owner-scoped | List your own crossings: {ok, count, scope: "owner" | "all", crossings: [{seal_id, created_at, system_id, outcome, regulation, owner, verifiable, column_divergence}]}. owner is your account e-mail as sealed into each record (it also appears as envelope.owner on POST /canal/envelope and as seal_basis.envelope_owner in your own evidence; the public verify redacts it). scope: "all" only for a master-tier key. |
POST /canal/attestation | API key, owner-scoped | Record a self-declared compliance attestation (SOC 2 v1; other frameworks pre-provisioned, not yet selectable). Immutable once written. Not verified by ANAX. |
GET /canal/attestation | API key, owner-scoped | List your own attestations, optionally filtered by subject_ref. |
POST /canal/envelope: the clearance envelopeAn envelope declares one AI system under your key's owner and mints its clearance_id. It is the first call: a crossing that names a system_clearance_id you own is chained and can clear; a crossing without one is sealed but not chained and stops at the onboarding gate (CLEARED_WITH_VICCA_REQUIRED). Header: X-API-Key: <key>. Body:
| Field | Type | Required | Effect |
|---|---|---|---|
system_name | string | yes | Trimmed; 1–200 characters. Missing → 400 "Missing system_name"; longer → 400 "system_name too long (max 200)". With system_type and your owner it determines the ids below. |
system_type | enum | yes | One of in-house · third-party-api · hybrid. Anything else → 400 "system_type must be one of: in-house, third-party-api, hybrid". |
provider | string | optional | Default: the derived system_id. |
authorised_scope | object | optional | permitted_jurisdictions, permitted_sectors, permitted_decision_types, permitted_data_categories (each string[], default []; a non-array is treated as []); max_automation_level (enum human_primary · ai_informed · ai_assisted · fully_automated, default ai_assisted; other → 400 "Invalid max_automation_level. Allowed: …"); risk_class (string, default limited_risk, not validated here). |
valid_until | string | null | optional | Stored as sent (no format check); default null = open-ended. |
supersedes_clearance_id | string | optional | Declares this envelope as the continuation of a prior one (a renamed system). It must resolve (400 "supersedes_clearance_id does not resolve to an envelope."), be yours (403 "You do not own the envelope you are trying to supersede.") and differ from the new id (400 "An envelope cannot supersede itself."). The prior chain's head hash is sealed into this chain's genesis crossing. |
system_id, clearance_id | — | never | Server-derived. Sending either → 400 "system_id / clearance_id are server-derived and must not be sent". |
Identity is deterministic. clearance_id = env_ + 32 hex characters, an HMAC over (your owner, system_name, system_type) with a server-side salt; system_id = sys_ + 32 hex characters, the unsalted SHA-256 of the same triple. The same triple always yields the same ids, so the call is idempotent on identity — and re-posting an existing triple overwrites that envelope (upsert on clearance_id): its status returns to DECLARED and issued_at is reset, while its chain is untouched.
Warning. Re-sending the same envelope RESETS its status to DECLARED and resets issued_at; the chain is not affected. If the system is already ACTIVE, do NOT re-send the envelope. Send it once, keep the clearance_id, and declare a renamed system as a new envelope with supersedes_clearance_id instead.
Response — 200:
{
"ok": true,
"clearance_id": "env_<32 hex>",
"status": "DECLARED",
"agc_level": null,
"trust_basis": "UNRESOLVED",
"vicca_oja_reference": null,
"message": "Envelope created. Evidence grade is not yet resolved: it is earned from sealed crossing behaviour over time, and no self-declared report can set it. Use this clearance_id as system_clearance_id in /canal/evaluate.",
"envelope": {
"contract": "canal-system-envelope-v1",
"clearance_id": "env_<32 hex>",
"issued_at": "2026-10-26T12:00:00.000Z",
"status": "DECLARED",
"system": { "system_id": "sys_<32 hex>", "system_name": "<as sent, trimmed>", "provider": "<provider as sent, else the sys_ id>" },
"validity": { "valid_from": "<= issued_at>", "valid_until": null },
"issued_by": { "authority": "canal-gateway", "authority_type": "canal_internal", "issuer_reference": null },
"evidence_basis": { "trust_basis": "UNRESOLVED", "agc_level": null, "evidence_sources": [], "vicca_oja_reference": null, "source_passport": null },
"authorised_scope": { "permitted_jurisdictions": [], "permitted_sectors": [], "permitted_decision_types": [], "max_automation_level": "ai_assisted", "risk_class": "limited_risk", "permitted_data_categories": [] },
"owner": "<your owner, lower-cased>",
"tier_at_issue": "<your license_tier>",
"supersedes": null
}
}
agc_level, trust_basis and vicca_oja_reference are always null / "UNRESOLVED" at issue: a grade is earned from sealed crossings, never declared. Failures: 400 "No owner on key" (a key without an owner cannot hold an envelope); 503 "Could not read the superseded envelope - envelope not issued. Retry." / "Could not read the superseded chain head - envelope not issued. Retry."; 500 "Failed to persist envelope" (nothing issued) or "Internal error". Every error is {"ok": false, "reason": "…"} with the exact strings above.
Which envelope fields are enforced, field by field. On every chained crossing the gateway compares the crossing with the envelope and records the result in the sealed crossing. The table is the code, not a design intention: a field marked DECLARATIVE ONLY is stored and returned exactly as you sent it and no gate reads it. Do not build an authorisation control on a declarative field.
| Field | Status | What the gateway does with it |
|---|---|---|
status (server-set: DECLARED → active) | ENFORCED | Only active or DECLARED admits a chained crossing. Casing differs by state: the gateway writes DECLARED in upper case at issue and active in lower case on promotion, and the export echoes the stored value ("status": "active"). Compare case-insensitively; any other status → the envelope is treated as inactive and the crossing is sealed CLEARED_WITH_VICCA_REQUIRED (the onboarding gate). |
valid_until | ENFORCED | Past → the envelope is inactive: same outcome as above. null = open-ended. |
authorised_scope.max_automation_level | ENFORCED (advisory) | The crossing's automation_level above it (order human_primary < ai_informed < ai_assisted < fully_automated) is a scope violation — see the next paragraph for what a violation does. |
authorised_scope.permitted_sectors | ENFORCED (advisory) | When non-empty: the crossing's sector must contain one entry, case-insensitive; otherwise a violation. Empty = no restriction. |
authorised_scope.permitted_jurisdictions | ENFORCED (advisory) | When non-empty: the destination jurisdiction must match one entry (alias-aware); otherwise a violation. Empty = no restriction. |
authorised_scope.permitted_decision_types | DECLARATIVE ONLY | Stored and returned. Never read by any gate; input.type is sealed, not matched against it. |
authorised_scope.permitted_data_categories | DECLARATIVE ONLY | Stored and returned. Never read by any gate. |
authorised_scope.risk_class | DECLARATIVE ONLY | Stored and returned. The risk class that is judged is the crossing's own input.payload.risk_class, never the envelope's. |
provider, system_name | DECLARATIVE ONLY | Sealed into the record for identity and reporting; not an authorisation check. |
supersedes_clearance_id | sealed, not enforced at crossing time | Verified at envelope creation (must resolve and be yours); the prior chain's head is sealed into this chain's genesis and exported as supersession. |
evidence_basis (trust_basis, agc_level, …), tier_at_issue, issued_by | server-set, read-only | Always UNRESOLVED / null at issue; the evidence grade is earned from sealed crossings and recomputed on verification, never taken from the envelope. |
What a scope violation does — a camera, not a brake. When an ENFORCED scope field is violated, Canal does not refuse the crossing and does not return BLOCKED. The crossing is evaluated, sealed with the violations written into conditions[] (and into the sealed record as scope_violations), chained, and the reason says so (“Out-of-scope crossing - transaction falls outside the authorised envelope scope. The crossing is sealed with violation record…”). That is the gateway's design for scope: the breach is recorded permanently and visible to anyone who verifies the seal, and it lowers the evidence grade of the chain (signal S4, scope conformance) — it is not stopped. If your integration needs a hard stop on scope, implement it on your side before calling Canal; only the prohibited-practice gate (full contract path) and a regulatory-phase block (Gate 1) produce BLOCKED.
Step 2. Put the clearance_id in POST /canal/evaluate as system_clearance_id. The envelope moves from DECLARED to active (lower case, as stored and as the export shows it) on its first sealed crossing; the crossing is linked at chain_seq 0 (genesis) and the response's meta.chain_linked is true with meta.chain_seq the position. From this point the envelope's system_id replaces input.source as the sealed identity (system_id_source: "envelope"); whatever you send as input.source is kept only as provider and, if different, system_id_claimed. From then on GET /canal/chain/verify/:clearance_id and GET /canal/chain/export/:clearance_id read that chain.
An active Canal API key, and a framework your tier licenses, is all you need. Send the key in the X-API-Key header and post two fields — the decision's governance attributes and the framework to cross them against. A framework outside your tier is refused 403 not_licensed (see below), not silently accepted. This minimal call is unchained by design; an envelope (POST /canal/envelope) is the setup step for a chained crossing, not required for this one:
curl -X POST https://<your-canal-host>/canal/evaluate \
-H "X-API-Key: sk-canal-..." \
-H "Content-Type: application/json" \
-d '{"input":{"source":"my-system","type":"loan_decision"},"regulation":"eu_ai_act_2024"}'
The crossing is sealed and returns an outcome, a seal_id and a seal hash. This minimal call is sealed but not chained and returns CLEARED_WITH_VICCA_REQUIRED — the onboarding gate. To get a chained, clearing crossing, add a system_clearance_id from an envelope you created with POST /canal/envelope.
What a first call returns. An ungoverned first call on the six-field path — no Mandate presented — returns a CLEARED-family outcome:
CLEARED_WITH_CONDITIONSinside an envelope,CLEARED_WITH_VICCA_REQUIREDwithout one; never bareCLEARED, which requires an authority-sealed VICCA assessment.
CLEARED_WITH_VICCA_REQUIRED— the onboarding gate: what it means and what to do nextWhen you get it.
POST /canal/evaluate(and/canal/evaluate/full) returnsoutcome: "CLEARED_WITH_VICCA_REQUIRED"in exactly these cases:
- the request carries no
system_clearance_id;- it carries one that does not exist, or one that belongs to another owner — both are treated as no envelope, deliberately, so that an id cannot be probed;
- it carries your own envelope but the envelope is inactive: its status is neither
activenorDECLARED, or itsvalid_untilhas passed. Thereasonthen begins"Clearance envelope is no longer active…"instead of"Onboarding gate…".What it means. It is a verdict, not an error: 200, with
seal_idandseal, sealed and publicly verifiable like any other outcome. It says the decision's declared attributes were evaluated and nothing prohibited them, and that the AI system has no active clearance envelope, so the crossing could not enter a sealed chain. Concretely:meta.chain_linkedisfalse,meta.chain_seqisnull, the public verify showschain_position: {absent: true}, the sealedsystem_idis whatever you sent asinput.source(ornull), and the record cannot earn an Evidence Grade above 0 (signals S1 and S5 do not hold). Nothing is blocked: you may keep crossing without an envelope, and every such crossing is sealed as this same outcome. It carries no obligation towards ANAX; it records that the system is not yet onboarded.What to do next. Declare the system once and cross again:
POST /canal/envelopewithsystem_nameandsystem_type(Step 1). Self-declared, free, immediate. Keep theclearance_id.- Repeat the crossing with
system_clearance_idset to it. The first crossing is the chain's genesis (meta.chain_linked: true,meta.chain_seq: 0) and promotes the envelope toactive; the outcome becomes a chained CLEARED-family verdict (CLEARED_WITH_CONDITIONSon the ungoverned path).- If the gate fired because the envelope was inactive: re-issue it. Re-posting the same
system_name/system_typereturns the sameclearance_idwith statusDECLAREDand the newvalid_untilyou send; the existing chain is untouched and continues from the next crossing. For a renamed system, declare a new envelope withsupersedes_clearance_idinstead.The
vicca_recommendationblock on a gate response is the general block described in vicca_recommendation, with the gate's own constant values:level: "required",risk_if_skipped: "HIGH",defensibility_score_canal: 0,defensibility_score_vicca: 92,envelope_renewal_period: "12 months", andestimated_assessment_time"2-3 hours (one-time)"on the no-envelope branch or"renewal"on the inactive branch. Constant and indicative, as the subsection says. A report-backed envelope (an assessment through ANAX's VICCA service, outside this API) raises the envelope's evidence weight; it is not required to leave the gate — a self-declared envelope is enough.Field notice. Until the next gateway release the block also carries
vicca_endpoint: "/api/vicca/judge". That value is a console route of a different ANAX product; it is not reachable with an API key and not part of this API — do not call it. The next release removes it and replaces it withdocs_url, the absolute URL of this section.
vicca_recommendation— what the block is, on every sealed crossingWhat it is. Every sealed crossing —
POST /canal/evaluateand/canal/evaluate/full, every outcome includingBLOCKED— carries a top-levelvicca_recommendationobject, and the same object is sealed into the record (seal_basis.vicca_recommendation). It is a notice about ANAX's separate VICCA assessment service, not a result of one: no assessment runs when you cross, nothing in the block is computed from your decision, and nothing in it changes theoutcome.
Field Value Where it comes from levelstrongly_recommended·recommended·optional·not_recommendedon a sealed crossing;requiredon the onboarding gatea fixed table keyed by ( regulation,automation_level) foreu_ai_act_2024,gdpr_2016_679,dora_2022; every other framework uses one default row setreasona sentence templated from the same two inputs risk_if_skippedHIGH·MEDIUM·LOWthe same table defensibility_score_canal,defensibility_score_viccaintegers (today between 65 and 93 on a sealed crossing; 0/92on the gate;0/0on a refusal)constant, indicative: the table's figures for that (framework, automation level) pair. They are not measured on your system, not derived from the crossing, and not an Evidence Grade — the grade is agc_level(see the ladder above)estimated_assessment_time"2-3 hours"("2-3 hours (one-time)"/"renewal"on the gate;"n/a"on a refusal)constant envelope_renewal_period"12 months"constant; present on the gate branches only docs_urlan absolute URL into this reference added in the next gateway release, replacing the withdrawn vicca_endpoint(see the field notice above)Read it as a notice, not as a verdict. Your system should decide on
outcome,seal_idandseal;vicca_recommendationtells you how strongly ANAX suggests an assessment for crossings of this framework and automation level, in constants. Treat the scores as a published scale, not as a measurement of you.On a refused crossing it does not offer a way through. When the outcome is
BLOCKEDbecause the Mandate presented does not authorise the act (reasonbegins"Authority gate - "), the block carrieslevel: "not_recommended", both scores0,estimated_assessment_time: "n/a"andauthority_reason. VICCA does not widen a Mandate. A refused crossing does not pass with a VICCA assessment; only a Mandate that authorises the act does. The block is there so the record is complete, not as an upsell.
BLOCKEDis itself a verdict — sealed and returned 200 like any other outcome, never an error status — and it has two independent gates. The prohibited-practice gate is not reachable from this six-field path:prohibited_practiceis fixedfalsehere and can only be set true viaPOST /canal/evaluate/full. The Mandate authority gate is reachable from both paths: present amandatetogether with acommitment_class, and Canal judges the declared class against the act's floor and the Mandate's ceiling on the same reversible…binding ladder used throughout this API. A class below the floor, above the ceiling, or off the ladder entirely is refused asclass_below_floor/class_exceeded/malformed_action— sealed asBLOCKED, not returned as an error. Nomandateat all is the ungoverned path: not a refusal, and every existing caller's default. Amandatethat is itself invalid or expired never reaches this gate — it is refused earlier, customer-actionable, 403mandate_invalid/mandate_expired(below).ESCALATE_TO_VICCAis a retired alias, kept only for backward compatibility —CLEARED_WITH_VICCA_RECOMMENDEDis what current code returns in its place. Do not expect bareCLEAREDfrom a first call, and do not assumeBLOCKEDis unreachable just because you skipped/full.
POST /canal/evaluateHeader: X-API-Key: <key> (the key is read from the header only). Body:
| Field | Type | Required | Default / effect |
|---|---|---|---|
input | object | yes | Governance attributes about the decision being crossed — not the decision's content itself, which is never sent. Missing → 400 {"ok":false,"reason":"Missing input"}. |
input.source | string | optional — but see effect | Not validated: absent gives no 400. Without an envelope it is the only identity the seal has: it becomes system_id and provider; absent → the record is sealed with system_id: null, provider: null — a seal that names no system. Send it on unchained crossings. With an envelope it is not the identity: the sealed system_id is the envelope's sys_ id (system_id_source: "envelope"); the value you send is kept as provider and, when it differs from the envelope's id, as system_id_claimed — which fails grade signal S2. Omit it on chained crossings, or send the envelope's system_id. |
input.type | string | recommended | The decision type, sealed into the record. It is not matched against anything: the envelope's permitted_decision_types is stored but not enforced (see the envelope step). |
input.payload.sector | string | optional | Default "general". (.domain is accepted as an alias.) |
input.payload.risk_class | enum | optional | Default "limited_risk". One of prohibited · high_risk · limited_risk · minimal_risk · gpai. |
input.payload.personal_data | boolean | optional | Default false. |
input.payload.criticality | string | optional | Default "medium". |
regulation | string | yes | One framework id from GET /canal/frameworks (e.g. eu_ai_act_2024, gdpr_2016_679, dora_2022, iso27001_2022). Must be in the key's licensed set, else 403 not_licensed. Missing → 400 {"ok":false,"reason":"Missing regulation"}. |
automation_level | enum | optional | Default "ai_assisted". One of fully_automated · ai_assisted · ai_informed · human_primary. |
jurisdictions | string[] | optional | Default ["EU"]. Only the first entry is used — for origin, destination and processing location alike. |
system_clearance_id | string | optional | A clearance envelope you own (from POST /canal/envelope). Absent or unknown → the onboarding gate: sealed as CLEARED_WITH_VICCA_REQUIRED, not chained. An envelope you do not own is treated as absent. |
commitment_class | enum | optional | Default null. One of observe · reversible · irreversible · financial · binding. Judged only when a mandate is presented. |
mandate | string | optional | An SD-JWT Open Mandate. When present it is verified, judged and spent (one unit). Absent = the ungoverned path every existing caller takes. |
phase_flags | string[] | optional | Default [] (regulatory-phase flags). |
Do not send these — they are server-assigned and a sent value is either ignored or refused:
commitment_act — the act is server-assigned (canal_evaluate); a body value is ignored.system_id, clearance_id, envelope_owner — never read here; identity is input.source plus the key's owner. On POST /canal/envelope, sending system_id or clearance_id is refused: 400 {"ok":false,"reason":"system_id / clearance_id are server-derived and must not be sent"}.api_key in the body — not read (header only).Posted against a MedTriage AI envelope created one step earlier:
{
"system_clearance_id": "<clearance_id from POST /canal/envelope>",
"input": {
"source": "medtriage-triage",
"type": "symptom_triage",
"payload": { "sector": "general", "risk_class": "limited_risk", "personal_data": true, "criticality": "medium" }
},
"regulation": "eu_ai_act_2024",
"automation_level": "ai_assisted",
"jurisdictions": ["EU"]
}
→ 200, outcome: "CLEARED_WITH_CONDITIONS", reason: "Gate 4 - Transaction within acceptable parameters. Cleared subject to standard oversight conditions." — the default branch when no VICCA assessment is on record. Not bare CLEARED, by design. Every reason on this path is prefixed with the gate that ruled, Gate N - (Gate 1 - for a prohibited practice or a regulatory-phase block, Gate 4 - for the eligibility verdict), and the same prefixed string is sealed as determination_basis; match on outcome, not on reason.
One body serves every sealed verdict. A governance block (a prohibited practice, or a Mandate declaring a class below the act's floor or above its ceiling) is this same body with outcome: "BLOCKED" — sealed and chained like any other verdict. There is no error key on any 200.
{
"ok": true,
"seal_id": "canal-<ms>-<12hex>",
"seal": "<64-hex sha256 of the sealed basis>",
"timestamp": "<ISO-8601>",
"outcome": "<CANAL_OUTCOMES word>",
"reason": "<determination basis>",
"flags": ["<conflict flag>", "..."],
"triggers": ["..."],
"conditions": ["..."],
"vicca_recommendation": <object | null>,
"regulation": "<regulation>",
"automation_level": "<automation_level>",
"jurisdictions": ["<...>"],
"canal_intelligence": <object | null>,
"temporal_assessment": <object>,
"crossings_remaining": <int>,
"meta": {
"engine": "CANAL-API", "version": "2.1", "mode": "sovereign-port",
"evidence_stored": <bool>,
"chain_linked": <bool>,
"chain_seq": <int | null>
}
}
meta.chain_linked is derived from the actual write and is false only for a crossing with no clearance envelope (nothing to chain to).
CANAL_OUTCOMES — the only values outcome can take:
BLOCKED · CLEARED · CLEARED_WITH_CONDITIONS · CLEARED_WITH_VICCA_RECOMMENDED · CLEARED_WITH_VICCA_REQUIRED · ESCALATE_TO_VICCA · REGISTERED
The single rule: a governance-result field exists only when a gate evaluation ran and was sealed — /canal/evaluate returns it as outcome, /canal/evaluate/full as canal_evaluation.result. A pre-evaluation 4xx/5xx on either endpoint carries neither field and no seal. A refusal before evaluation — commercial, credential, or ours — carries an error word and seals nothing. A client that branches on outcome therefore never mistakes “your plan ran out” or “our service had a fault” for a governance verdict.
| Class | Who acts | HTTP | Wire marker | Sealed? |
|---|---|---|---|---|
| Governance verdict — a gate ruled on the crossing | nobody: it is the answer | 200 | outcome + seal_id + seal | yes |
| Customer-actionable — licence, plan, credential | you remediate | 401 / 403 / 429 | an error word; never outcome | no |
| ANAX-side — a dependency we could not read, or our own credential | we repair; you retry | 503 | an error word, or a reason ending “no verdict issued. Retry.”; never outcome | no — the allowance unit is refunded where one was taken |
| ANAX-side, unexpected — a fault in our own code or an unreadable registry on a read path | we repair; report it to ANAX with the path and the time | 500 | a constant reason per path (“Export error”, “Registry lookup failed”, “Internal error” … each one named in Response shapes); never a stack, a table or a query; never outcome | no — nothing was written on a read path |
No Retry-After header is sent on any path. A 503 is a service-side condition an operator repairs, not a fixed wait; your normal backoff is the right pace.
| Condition | Response |
|---|---|
| no header | 401 {"ok":false,"reason":"X-API-Key header required","docs":"https://anaxstandard.ai/docs/api"} |
| unknown or inactive key | 401 {"ok":false,"reason":"Invalid or inactive API key"} |
| key suspended | 403 {"ok":false,"reason":"API key suspended"} |
| licence period ended | 403 {"ok":false,"reason":"License expired. Renew at app.anaxstandard.ai"} |
| no licence period on record (tier requires one) | 403 {"ok":false,"reason":"No active license on record"} |
Only a sealed verdict carries a governance result, and only at 200 — BLOCKED included: it is itself a verdict, sealed and returned 200 like any other outcome, never an error status. On /canal/evaluate, outcome and seal appear together at 200; on /canal/evaluate/full, the equivalent verdict field is canal_evaluation.result, with the same seal fields alongside it. A failure before evaluation carries neither a governance-result field nor a seal. Within that pre-verdict space, a named licence, allowance or Mandate fault carries an error word beside reason ({"ok": false, "error": "...", "reason": "..."}) — not_licensed, allowance_exhausted, mandate_invalid / mandate_expired / mandate_exhausted / mandate_refused, allowance_counter_unavailable, mandate_unavailable, chain_write_unavailable. All other failure classes are reason-only unless explicitly documented with an error code.
403 {"ok":false,"error":"not_licensed",
"reason":"Regulation '<regulation>' not in your <license_tier> license. Upgrade at app.anaxstandard.ai",
"your_frameworks":["<framework>","..."]}
your_frameworks is your own licensed set (never another tenant's). A key with no frameworks at all carries "reason":"No frameworks are licensed on this key. Contact app.anaxstandard.ai" and "your_frameworks":[].
Emitted only on positive proof from a successful counter read (used >= limit); every other counter state is a 503, never a 429.
429 {"ok":false,"error":"allowance_exhausted",
"reason":"Monthly crossing limit of <N,NNN> reached. Upgrade at app.anaxstandard.ai",
"crossings_remaining":0}
The ceiling is the tier's: entry 5,000 · professional 20,000 · institutional 100,000 crossings per calendar month (UTC).
When you present a mandate that is yours to fix. Two moments, one shape — at load (verification: signature, expiry, audience) and at spend (the Registration Authority refused the unit):
403 {"ok":false,"error":"mandate_invalid" | "mandate_expired" | "mandate_exhausted",
"reason":"<the same word>","allowance_refunded":<true | false>}
A customer-attributable RA refusal outside the named customer vocabulary returns "error":"mandate_refused". ANAX-side RA failures are normalised to 503 mandate_unavailable and are never exposed as customer Mandate faults. allowance_refunded is the measured result of the refund (true only when the crossing unit was actually returned), never “attempted”. Nothing is sealed on any of these.
A 503 here means our service could not do its part: a dependency we could not read, a counter we could not trust, or our own credential refused by the Registration Authority. It is not “the network is down”, and it is never your Mandate or plan. The body carries one normalised word — no raw database, RA or library text ever reaches the wire. Nothing is sealed; the allowance unit is refunded wherever one had been taken.
| Condition | Response |
|---|---|
| allowance counter unreadable | 503 {"ok":false,"error":"allowance_counter_unavailable","reason":"Crossing counter temporarily unavailable - crossing not recorded. Retry shortly."} — no crossings_remaining: unknown is not zero. |
| RA unreachable / our credential refused | 503 {"ok":false,"error":"mandate_unavailable","reason":"mandate_unavailable","allowance_refunded":<bool>} |
| verifier unreachable (before any spend) | 503 {"ok":false,"reason":"Mandate could not be verified - no verdict issued. Retry."} |
| chain head could not be taken | 503 {"ok":false,"error":"chain_write_unavailable","reason":"chain_write_unavailable","allowance_refunded":<bool>} |
| a read we could not make (clearance envelope, VICCA assessment, chain position, trust weight) | 503 {"ok":false,"reason":"<dependency> unavailable - no verdict issued. Retry."} |
Raised before any route runs; the key is not read.
| Condition | Response |
|---|---|
| malformed JSON body | 400 {"ok":false,"reason":"Malformed JSON body"} |
| body over 10 MB | 413 {"ok":false,"reason":"Request body exceeds 10mb"} |
| malformed request URI | 400 {"ok":false,"reason":"Malformed request URI"} |
POST /canal/evaluate/full — the full contractWhere /canal/evaluate builds the transaction object for you from six simple fields, /canal/evaluate/full takes the whole canal-crossing-transaction-v2.1 object — exposing the decision_impact, oversight_controls and richer data_profile blocks the evaluation reads directly. Admission requires contract === "canal-crossing-transaction-v2.1" and a caller-supplied transaction_id (a second seal of the same id for the same account → 409). Self-declared trust is neutralised server-side — a caller cannot assert its own evidence level.
Schema, not a proven example. The object below is the contract builder's output with its defaults, verbatim — but no
/fullfixture exists in the repository, so unlike the/evaluateexample above it has not been measured against a live call. Derive your object from it; do not treat it as a tested request.
{
"contract": "canal-crossing-transaction-v2.1",
"transaction_id": "<caller-supplied, unique per account>",
"timestamp": "<ISO-8601>",
"ai_system": {
"system_id": null, "provider": null, "provider_jurisdiction": null, "model_type": null,
"deployment_environment": null, "hosting_jurisdiction": null, "system_clearance_id": null
},
"transaction_context": {
"regulation": null, "decision_type": null, "sector": null, "use_case": null,
"criticality": null, "automation_level": null, "human_review": null
},
"jurisdiction": {
"origin": null, "processing_location": null, "destination": null,
"affected_subject_jurisdiction": null, "additional_hops": []
},
"data_profile": {
"personal_data": false, "special_category_data": false, "biometric_data": false,
"financial_data": false, "health_data": false, "children_data": false
},
"ai_risk_profile": {
"risk_class": null, "ai_act_domain": null, "prohibited_practice": false, "gpai_component": false
},
"decision_impact": {
"affects_individual_rights": false, "economic_impact": false, "legal_effect": false,
"service_access": false, "reversible": true
},
"oversight_controls": {
"human_in_the_loop": false, "explainability_available": false,
"appeal_mechanism": false, "decision_logging": false
}
}
On /canal/evaluate/full the verdict is canal_evaluation.result, not a top-level outcome; the seal fields are the same.
POST /v1/crossing:seal is the governed bilateral crossing path. It requires Closed Mandates held by both parties — issued by the Registration Authority against each party's Open Mandate and bound to one agreed Terms Document — and it is not self-serve: it is not callable with an API key alone (the credential is the Mandate). Its error vocabulary is a JSON-RPC extension documented in the Governed Crossing specification, Addendum A-3.5. For governed bilateral crossings, contact us.
What a third party can do without an account is verify a bilateral seal: GET /canal/verify/:seal_id and the public verification portal need no credential.
/canal/attestationPOST /canal/attestation records that a subject holds, or is pursuing, a named compliance framework — today, v1, only soc2 is selectable (the other three framework ids in the schema are pre-provisioned for future intake). Two shapes: status: "held" requires cert_number, issuing_body and a future-dated expiry_date; status: "in_progress" requires auditor_name, engagement_start and expected_completion. The source of every field is the caller, always — a constant, not a variable: Canal stores what you declare and stamps the row's sealed_label with “NOT verified by ANAX” verbatim. Rows are immutable once written. GET /canal/attestation lists your own rows (optionally filtered by subject_ref), each carrying a server-derived expired and superseded flag — never accepted from the caller.
These are the objects the gateway returns today, field for field. A field listed here is always present (possibly null); nothing else is emitted.
GET /canal/verify/:seal_id — public, three shapesWhat "verified" means. The gateway recomputes SHA-256 over the canonical serialisation of the stored seal_basis (object keys sorted at every level, undefined dropped) and compares it with the stored seal; it also compares the row's outcome / regulation columns with the sealed values. verified is true only when both hold. It attests that the record ANAX holds is the record ANAX sealed — a SHA-256 commitment, not a signature, and never the decision's content.
| Condition | HTTP | Response |
|---|---|---|
sealed under the current rule (seal_version 2) | 200 | { ok: true, verifiable: true, verified: <bool>, reason: null | "COLUMN_DIVERGENCE" | "TAMPERED", seal_valid: <bool>, seal_version: 2, grade_valid, grade_reason, grade_recomputation, grade_ceiling, column_divergence: null | […], chain_position: {chain_seq, prev_hash, is_genesis} | {absent: true} | null, seal, computed_seal, evidence: {seal_id, outcome, regulation, timestamp, system_id, agc_level, trust_basis, seal_basis: <redacted>, redacted_fields: […], redaction_note} }. verified: true ⇒ reason: null, seal_valid: true, column_divergence: null. TAMPERED ⇒ the recomputed hash differs from seal (computed_seal shows it). COLUMN_DIVERGENCE ⇒ the seal re-derives but a stored column differs from the sealed value (the list names each). chain_position.absent: true ⇒ the seal is not in any chain (an unchained crossing); null ⇒ the chain could not be read at that moment (the seal verdict stands; linkage is not asserted). |
| sealed under the superseded v1 rule | 200 | { ok: true, verifiable: true, verified: false, reason: "LEGACY_SEAL_RULE_SUPERSEDED", legacy: true, note, grade_valid: null, grade_reason, seal, evidence } — not a tamper finding: the record predates the whole-record seal and cannot be re-derived under it. |
no seal_basis stored | 200 | { ok: true, verifiable: false, reason: "This record predates verifiable sealing (no seal_basis stored). Record is retained but cannot be independently re-derived.", grade_valid: null, grade_reason: "NO_GRADE_SEALED", seal, evidence: {seal_id, outcome, regulation, timestamp} } |
unknown seal_id | 404 | {"ok":false,"reason":"Evidence not found: <seal_id as sent>"} |
| registry unreadable / unexpected error | 500 | {"ok":false,"reason":"Registry lookup failed"} / {"ok":false,"reason":"Verification error"} |
Headers. Canal's public verify sends no X-RateLimit-* headers and has no per-IP limiter of its own (X-Layer's public verify does, and documents it above). Not-found is a 404 here, not a 200 verdict as on X-Layer's /chain/public-verify: the two public verifiers differ in that respect, by design of each.
Redaction. The public evidence.seal_basis omits, when present: envelope_owner; supersedes_clearance_id; the six posture keys under grade_basis (reason, capped_by, signals, satisfied, failed, undetermined); and authority.mandate_token_sha256. redacted_fields lists exactly what was removed, in that spelling (grade_basis.reason, authority.mandate_token_sha256, …). Those fields ARE inside the seal hash, so the public copy alone cannot re-derive seal — the owner's GET /canal/evidence/:seal_id can.
GET /canal/evidence/:seal_id — owner-scoped200 { ok: true, source: "registry", evidence: { seal_id, seal, regulation, outcome, timestamp, seal_basis: <complete, unredacted>, column_divergence: null | […] } }. regulation / outcome are the sealed values when a seal_basis exists, else the row's. timestamp is the row's created_at (see Conventions for its form). Failures: 403 "Not authorised to view this evidence." (another owner's seal); 404 "Evidence not found: <seal_id>"; 500 "Registry lookup failed" / "Registry lookup error". A master-tier key reads any seal.
seal_basis (seal_version 2)The object whose canonical (key-sorted) serialisation is hashed into seal. Thirty top-level keys today: identity — seal_version, pack_id, pack_version, transaction_id, system_id, system_id_source ("envelope" or "caller_asserted"), system_id_claimed (present only when the caller's input.source differed from the envelope's id), provider, envelope_owner; the crossing — regulation, outcome, determination_basis, timestamp, prev_hash, automation_level, jurisdiction, ai_risk_profile, data_profile, decision_profile, triggers, conditions, conflict_flags, canal_intelligence, vicca_recommendation, vicca_oja_reference; the grade — trust_basis, agc_level, grade_rule_version ("eg-1"), grade_basis (signals, satisfied, failed, undetermined, reason, capped_at, capped_by, capped_by_uncertainty, thresholds_configured, thresholds_missing); and authority (governed, judged, refused, reason, declared_class, enforced_class, floor_class, commitment_act, mandate_class, mandate_kid, mandate_token_sha256). A key absent from a given record was not applicable to it; the hash covers whatever is present.
agc_level, grade_basis and grade_ceiling meanEvery sealed crossing is graded at seal time under rule eg-1 from eleven signals, each true, false or null (could not be determined). The grade is a ladder: each rung requires every signal of every rung below it.
| Signal | Name | Holds when |
|---|---|---|
| S3 | determination reached | a gate ruled (every sealed crossing). Grade 0 requires S3. |
| S1 | envelope binding | the crossing is bound to an envelope the caller holds (system_clearance_id you own). |
| S5 | chain linkage | the crossing is linked into that envelope's chain (a genesis crossing legitimately has no predecessor and still holds). Grade 1 = S1 + S5. |
| S2 | binding honesty | the caller did not misdescribe its own system: system_id_claimed is absent — i.e. input.source was omitted or equals the envelope's sys_ id. |
| S4 | scope conformance | conditions[] is empty: no scope violation was sealed. |
| S7 | envelope liveness | the envelope's stored status was active at the moment of grading. Grade 2 = S2 + S4 + S7. |
| S6 | divergence-free | no stored column diverges from the sealed value. |
| S8 | chain continuity | the unbroken run of the chain reaches an operator threshold. |
| S9 | envelope stability | no unlinked restart of the envelope's chain. |
| S10 | coverage completeness | the owner's estate is covered to an operator threshold (0–1). |
| S11 | divergence-free in depth | S6 sustained over a look-back depth. Grade 3 = S6 + S8 + S9 + S10 + S11. |
agc_level is the grade reached (0–3); trust_basis names it in words; grade_basis.reason says which signal stopped the climb (owner-visible only). grade_ceiling on the public verify states the highest grade this record could have reached when sealed: today max_reachable: 2 with reason: "THRESHOLDS_UNCONFIGURED" and the four missing operator thresholds listed, because the grade-3 thresholds (S8–S11) are not yet set on the gateway. Treat grade_ceiling.reason as the machine field; its note cites "§7A", a section of an internal ANAX operating document that is not published. On verification grade_valid says whether the sealed grade re-derives from the sealed signals (grade_recomputation.replayed) or is trusted as sealed, and grade_reason names the divergence if any.
Why a freshly declared envelope grades at 1. The genesis crossing is graded before the envelope is promoted (promotion to active happens after the seal is written), so its sealed grade_basis reports S7 (envelope liveness) false; from the second crossing on, S7 holds. S2 (binding honesty) is false whenever input.source differs from the envelope's sys_ id — the usual case when you send a human-readable source name. To reach grade 2 on chained crossings: omit input.source (or send the envelope's system_id), keep the crossing inside the enforced scope, and cross at least twice. Grade 3 is unreachable today for everyone (thresholds unconfigured) and the ceiling says so.
GET /canal/chain/verify/:clearance_id — owner-scoped200 { ok: true, clearance_id, chain_intact: <bool>, tampered: <bool>, contains_legacy: <bool>, legacy_seqs: […], length, head_seq, head_hash, break_at_seq: null | <int>, breaks: [{chain_seq, reason, detail}…], supersession: null | {supersedes_clearance_id, supersedes_head_hash}, statement }. chain_intact: true ⇒ every link re-derives to its stored hash and every prev_hash matches the re-derived hash of its predecessor (breaks: []). tampered: true ⇒ at least one break whose reason is hash_mismatch, seal_desync, link_detached, bad_genesis, broken_link, crossing_missing or no_seal_basis; break_at_seq is the first. contains_legacy ⇒ breaks whose only reason is legacy_seal_rule_superseded (recognised, not tampered). Failures: 403 on another owner's envelope; 404 "No chain found for clearance_id: <id>" (unknown envelope, or an envelope with no crossing yet); 500 "Chain verification error".
GET /canal/chain/export/:clearance_id — owner-scoped, the evidence pack200 { ok: true, export_type: "canal-chain-evidence-pack-v1", exported_at, exported_by, authority_note, clearance_id, envelope: {system_id, provider, owner, status, valid_until, issued_at}, chain_length, chain_intact_at_export, tampered_at_export, contains_legacy, supersession: null | {supersedes_clearance_id, supersedes_head_hash}, head_hash, crossings: [{chain_seq, seal_id, seal_version: 2 | "legacy", timestamp, outcome, regulation, seal_basis: <complete>, crossing_hash, prev_hash, integrity: {intact: true} | {intact: false, breaks: […]} | {intact: false, legacy: true, breaks: […]}}…], verification_instructions: {hash_algorithm, seal_rule, serialization, step_1 … step_4, legacy_vs_tampered, supersession, result, per_crossing_integrity}, export_seal }. export_seal is re-derived by the procedure in the next section — wire-order, compact, raw UTF-8, with ok and export_seal removed; the pack is self-verifying with no call to ANAX once that procedure is followed exactly. Failures: 403 "Not authorised to export this envelope's ledger."; 404 "Envelope not found: <id>" / "No chain found for clearance_id: <id>"; 500 "Envelope lookup failed" / "Chain lookup failed" / "Crossing lookup failed" / "Export error".
export_seal — the exact procedure, with a worked exampleexport_seal is not computed over a key-sorted document. It is SHA-256 over the pack serialised the way the gateway serialises it. The procedure, exactly:
export_seal and ok. Everything else stays, including null-valued members.seal_basis, whose own hash does sort keys; the two rules are stated separately on purpose.), and : only. Escape only what JSON requires (", \, control characters); do not escape / and do not \u-escape non-ASCII characters — emit them as raw UTF-8 bytes. Numbers as their shortest round-trip form (1, not 1.0).export_seal.In JavaScript that is const { ok, export_seal, ...pack } = body; sha256(JSON.stringify(pack)). In Python: json.dumps(pack, separators=(",", ":"), ensure_ascii=False).encode("utf-8") after del pack["ok"], pack["export_seal"] — with a parser that preserves key order (Python 3.7+ dict does).
Worked example. A pack produced by the gateway's own export code against a one-crossing chain (synthetic fixture: tenant tenant-a@example.com, envelope env_aaa…, nothing private). As received, pretty-printed here only for reading — the hash is over the compact form below:
{
"ok": true,
"export_type": "canal-chain-evidence-pack-v1",
"exported_at": "2026-10-26T18:24:33.270Z",
"exported_by": "ANAX Standard - College of Human and Business Efficiency Ltd",
"authority_note": "Recompute every hash from the data in this pack: they re-derive without calling ANAX's API. What they attest is the sealed record ANAX holds — the declared attributes and the verdict as sealed — not the decision's content, nor its origin. These hashes are not signed (VA signatures cover X-Layer CHR- links only; Canal signing is WIRE_SEAL_SPEC v0.3).",
"clearance_id": "env_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"envelope": {
"system_id": "sys_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"provider": "example-provider",
"owner": "tenant-a@example.com",
"status": "active",
"valid_until": null,
"issued_at": "2026-10-26T11:00:00.000+00:00"
},
"chain_length": 1,
"chain_intact_at_export": true,
"tampered_at_export": false,
"contains_legacy": false,
"supersession": null,
"head_hash": "c6f980729349bd66181b176922513986cc67b079931ba6f796ca2cf22aa3dfc2",
"crossings": [
{
"chain_seq": 0,
"seal_id": "canal-1700000000000-example00001",
"seal_version": 2,
"timestamp": "2026-10-26T12:00:00.000Z",
"outcome": "CLEARED_WITH_CONDITIONS",
"regulation": "eu_ai_act_2024",
"seal_basis": {
"seal_version": 2,
"seal_id": "canal-1700000000000-example00001",
"clearance_id": "env_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"system_id": "sys_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"prev_hash": null,
"regulation": "eu_ai_act_2024",
"outcome": "CLEARED_WITH_CONDITIONS",
"timestamp": "2026-10-26T12:00:00.000Z",
"input": {
"sector": "finance",
"risk_class": "limited_risk"
},
"provider": "example-provider"
},
"crossing_hash": "c6f980729349bd66181b176922513986cc67b079931ba6f796ca2cf22aa3dfc2",
"prev_hash": null,
"integrity": {
"intact": true
}
}
],
"verification_instructions": {
"hash_algorithm": "SHA-256",
"seal_rule": "seal_version 2 (the current rule): the seal covers the ENTIRE seal_basis object, not a fixed field list.",
"serialization": "For a v2 crossing (seal_basis.seal_version === 2): SHA-256 over a canonical JSON serialization of the whole seal_basis - object keys sorted lexicographically at EVERY level (recursively), array order preserved, keys whose value is undefined omitted. No fixed field order to memorise; sort every object.",
"step_1": "For each v2 crossing, recompute SHA-256 over the canonical serialization of its seal_basis. Confirm it equals crossing_hash.",
"step_2": "Confirm each v2 crossing's seal_basis.prev_hash equals the previous crossing's crossing_hash as you recomputed it in step_1 -- not as printed. Genesis (chain_seq 0) has seal_basis.prev_hash = null. seal_basis.prev_hash is the only predecessor covered by the SHA-256.",
"step_3": "Confirm each crossing's seal_basis.prev_hash equals its top-level prev_hash field. A difference means the ledger's link column was rewritten, or the link was written without re-sealing.",
"step_4": "Compute SHA-256 over this entire JSON document with the export_seal field removed. Confirm it equals export_seal.",
"legacy_vs_tampered": "A crossing whose seal_basis has no seal_version (or seal_version !== 2) was sealed under the SUPERSEDED v1 rule: its seal_version field here reads \"legacy\" and its integrity object carries reason 'legacy_seal_rule_superseded' with legacy: true. This is NOT tampering - it predates the whole-record seal and is not re-derivable under the current rule. Genuine tampering shows a DIFFERENT reason (hash_mismatch, broken_link, link_detached, seal_desync). tampered_at_export flags real tampering; contains_legacy flags superseded-rule crossings. Never treat legacy as broken.",
"supersession": "If supersession is present, this chain is a continuation of a prior chain (a system rename). It is NOT the system's whole history; verify supersedes_clearance_id separately, and confirm the genesis crossing's seal_basis.supersedes_head_hash matches that prior chain's head.",
"result": "The ledger is authentic and unbroken iff tampered_at_export is false AND every v2 crossing passes steps 1-3 AND step 4 holds. Legacy crossings are recognised, not re-derived. Steps 2 and 3 must both be performed: crossing_hash and top-level prev_hash are stored values; only seal_basis.prev_hash is inside the hash.",
"per_crossing_integrity": "Each crossing carries an integrity object recording the result ANAX computed at export time. Recompute it yourself; do not rely on it."
},
"export_seal": "c0798a6d6fc5bdf92ab0a0c84e41e08f760af3d25c16b4305283e902b51cf712"
}
After steps 2–4 the byte string is 4322 bytes (4318 characters; the 2 non-ASCII characters, the em-dashes in authority_note, are 3 bytes each). It begins
{"export_type":"canal-chain-evidence-pack-v1","exported_at":"2026-10-26T18:24:33.270Z","exported_by":"ANAX Standard - Co…
and ends
…ries an integrity object recording the result ANAX computed at export time. Recompute it yourself; do not rely on it."}}
SHA-256 of those bytes:
c0798a6d6fc5bdf92ab0a0c84e41e08f760af3d25c16b4305283e902b51cf712
which is the pack's export_seal. Three ways to get it wrong, each with its digest on this same pack so you can tell which mistake you made: keys sorted at every level → fdee11c19304b46b…; ok left in → 375cf5babd9edf6e…; non-ASCII \u-escaped → bb0263adff88fe50…. If your digest is one of these, the fix is the step named.
Independent confirmation is the only closure for this procedure: a foreign library reproducing the seal from this text alone. ANAX does not self-certify it.
A passport or certificate holder can direct anyone — an auditor, a governor, a counterparty — to the public verification portals. No account is required.
What the Canal API issues. A Decision Passport is issued by the VICCA ONE governance path, not by Canal — nothing documented in the Canal section above produces one. Every Canal call that reaches a verdict issues a seal_id and a seal hash only, publicly verifiable against the sealed record ANAX holds via GET /canal/verify/:seal_id. If your integration needs a Decision Passport, that is a separate, VICCA ONE-issued artifact, not a Canal API response field.
Certificates resolve at .ai. Both certificate families carry an ANAX-<year>- reference, and the .ai portal resolves both: an earned-era reference (-EG) is answered by re-deriving its Evidence Grade from the sealed crossing, and a legacy -T1 reference is shown as a registry record with no grade. The .com registry holds only the legacy family and answers NOT FOUND for an -EG reference.
| Portal | Verifies |
|---|---|
| verify.anaxstandard.ai | Decision Passports, Canal crossing seals, certificates, and Chronicle Chain links (CHR-) |
| verify.anaxstandard.com | Legacy VICCA ONE Governance Defensibility Certificates (-T1) only |
https://(*.)anaxstandard.ai, https://(*.)anaxstandard.com or http://localhost[:port]; any other origin gets no Access-Control-Allow-Origin header (the browser blocks the response; the request itself is still answered). Calls without an Origin header — servers, curl — are never CORS-restricted and are gated by the API key alone. X-Layer's two public verifiers answer every origin (*).Z (2026-10-26T12:00:00.000Z: issued_at on POST /canal/envelope, exported_at, seal_basis.timestamp, the sealed-era timestamp of a public verify). Values echoed from a stored row's created_at come back as the database renders them, with up to six fractional digits and a +00:00 offset (2026-07-17T17:53:07.466123+00:00: evidence.timestamp, the timestamp of a legacy or pre-seal record, a crossing's fallback timestamp in the export, and the export's envelope.issued_at, which is the envelope row's stored created_at — the same instant as the issued_at you received at creation, in the other form). Parse both; do not compare them as strings.{"ok": false, "reason": "<Thing> not found: <id as sent>"} (the id is echoed verbatim; it is never interpreted). An unknown path answers the framework default: 404 text/html Cannot GET /<path> — not JSON. A JSON 404 therefore means "the route exists and the id does not"; an HTML 404 means "no such route".supersedes_clearance_id.reason. A human sentence, stable enough to match on: the strings in this reference are the gateway's own, verbatim. Named faults additionally carry a machine word in error (not_licensed, allowance_exhausted, the mandate_* family); match on error where it exists, on reason otherwise. Every 503 reason on the crossing paths ends with Retry..{"status": "...", "message": "..."}. Canal errors return {"ok": false, "reason": "..."} (or {"ok": false, "error": "...", "reason": "..."} for a named fault) — see the Canal section. Authentication failures do not distinguish an unknown key from an inactive one.