FACTUM

For developers and integrators

Certify your first document in three calls.

Ask what can be asked, certify a document under one question, and fetch the keys that check the answer. Then verify it offline, with no call at all.

Your client never parses a sentence. Every verdict, refusal and gap is a registered code in a closed vocabulary, with a remedy class that says what to do next. API access is provisioned with a tenant: request access.

Three calls

Recorded outputThree calls made to the engine on 2026-11-05, as sent and as answered. The credential is not recorded.
  1. Ask what can be asked.

    GET /api/tenants/{tenant}/report-types

    200 OK · application/json · 188 ms

    The catalogue of declared questions for your tenant: 16 report types across 7 shelves, each with what it expects and the boundary it signs.

  2. Certify a document under one of them.

    POST /api/tenants/{tenant}/certify?reportType=fmc-demurrage-detention-invoice-completeness&filename=syn-inv-01-complete-import.html · Content-Type: text/html

    200 OK · application/json · 779 ms

    The document is the body, typed by its declared content type. The answer is the signed certificate: every finding with where it was read, every refusal by its code, and the boundary. This one was 3,442 bytes of HTML in.

  3. Fetch the keys that check it.

    GET /api/certificate-issuer-keys

    200 OK · application/json · 13 ms

    The issuer key set is public. It needs no credential, and a client can hold it as long as it likes.

  4. Verify it without us.

    One free file and the public key. It runs offline, and it says the same thing for as long as anyone holds the certificate.

    node factum-verify.mjs run-1.json public-key.txt
    VERIFIED
      keyId            vd-418b7ced1cea5f8e
      canonical bytes  59952
      barcode          … (the signed barcode, 479 characters, printed in full when you run it)
      surface          FULL - the body carries no surface block, so every claim the run captured is on it
    
      CERTIFIED BY THIS CHECK: this document was signed by the holder of the private half of the
      key you supplied, over the canonical form named in its signature block, and has not been
      altered by one byte since.
      NOT CERTIFIED BY THIS CHECK: that the key you supplied is the operator's. That comes from
      WHERE YOU OBTAINED THE KEY and from nothing in this file - a valid signature under the wrong
      key is exactly what a forgery looks like.

    Exit code 0. The verifier, its sha256, and how to read what it says.

A certificate is data

What the certify call returned, as JSON. The excerpt elides what it does not print, visibly; the file is the exact bytes, and the verifier checks them.

{
  "issuedAt": "2026-11-05T23:56:23.275Z",
  "reportType": {
    "id": "fmc-demurrage-detention-invoice-completeness",
    "title": "Demurrage / detention invoice — completeness under 46 CFR part 541"
  },
  "document": {
    "name": "syn-inv-01-complete-import.html",
    "kind": "html",
    "bytes": 3442,
    "sha256": "409c2b8b6b3a9e9731ee590dd552e4b4179c284d5aecfbdcee144a78b2720104"
  },
  "answers": [
    {
      "dataPointId": "dp-bol-number",
      "label": "the bill of lading number",
      "status": "resolved",
      "slotId": "S1",
      "factId": "fact-81627aff4e85c7ca",
      "value": "PBLU2026034771",
      "subject": "Bill of Lading Number",
      "field": "Value",
      "at": { … }
    },
    {
      "dataPointId": "dp-container-number",
      "label": "the container number",
      "status": "resolved",
      "slotId": "S2",
      "factId": "fact-f6fe79882ec59943",
      "value": "PBLU4471820",
      "subject": "Container Number",
      "field": "Value",
      "at": { … }
    },
    … 16 more
  ],
  "arithmetic": [
    {
      "arithmeticPointId": "ap-arith-free-time-span",
      "label": "Does the allowed free time in days equal the span from the free-time start date to the fre…",
      "status": "satisfied",
      "statement": "2026-04-02 to 2026-04-05 inclusive is 4 day(s); the invoice declares 4.",
      "cite": "§ 541.6(b)(3)–(5)",
      "derivation": { … }
    },
    {
      "arithmeticPointId": "ap-arith-charge-total",
      "label": "Does the number of dates charged multiplied by the daily rate equal the total amount due?",
      "status": "satisfied",
      "statement": "5 day(s) charged at 275.00 is 1375.00; the invoice states 1375.00.",
      "rounding": null,
      "cite": "§ 541.6(c)(1)–(3)",
      "derivation": { … }
    },
    … 2 more
  ],
  "signature": {
    "alg": "ed25519",
    "canonical": "VD-CANON-1",
    "keyId": "vd-418b7ced1cea5f8e",
    "signature": "rQUj3NgAFK1qzsTCT2RgTpYuUi+iIENMiqya5Yw22/6IbSb3HJWpic6/nx7vbPsSDflW2U3mknKQAmrv/I6NBw=="
  },
  … 17 more fields
}

Closed vocabularies

56 certify-path codesEach with an HTTP status, a stage and a remedy class.
40 document-intake codesEach with a remedy class and the declaration it needs.
4 remedy classesretry, declare, different_input, not_curable. Every code maps to exactly one.
16 report typesDeclared questions, printed from the engine's own list in the catalogue.

Refusals are RFC 9457 problem details

A refusal is application/problem+json, so a generic client works too, and it carries the code and the remedy class, so a Factum client never has to read the prose.

Recorded outputA refusal returned by the engine. Status 422, application/problem+json; charset=utf-8.
{
  "requestId": "94835c8a-4ff5-4e1d-8305-1ce09bbc9f1e",
  "type": "/problems/intake/pdf_format_undeclared",
  "title": "Pdf format undeclared",
  "status": 422,
  "detail": "a PDF was supplied with no declared `format` - `pdf_table` and `pdf_form` are the same file type and cannot be told apar…",
  "verdict": "refused",
  "echo": {
    "contentType": "application/pdf",
    "bytes": 903
  },
  "stage": "intake",
  "decisions": [
    {
      "code": "pdf_format_undeclared",
      "reason": "a PDF was supplied with no declared `format` - `pdf_table` and `pdf_form` are the same file type and cannot be told apar…",
      "remedy": "declare",
      "cure": {
        "acceptedFormats": [
          "pdf_table",
          "pdf_form"
        ]
      },
      "declarationNeeded": "format"
    }
  ],
  "ok": false,
  "code": "pdf_format_undeclared",
  "reason": "a PDF was supplied with no declared `format` - `pdf_table` and `pdf_form` are the same file type and cannot be told apar…",
  … 2 more fields, printed in the API reference
}
refusedpdf_format_undeclared

Beneath this

Agents and pipelines: for automation and AI agents.