← Back

Home · Guides · Sending Outcome Records

How do you send outcome records to the verified ledger?

By the Ingenious AI team · Published 2026-11-14 · Reviewed 2026-11-14

Short answer: Choose the door your system of record can actually use: POST /api/outcomes with your license key for systems that can call an API; POST /webhooks/outcomes signed with HMAC-SHA256 for systems that emit events; or POST /api/outcomes/import for systems that export files. Every record, whichever door it uses, carries the same facts — workflow, outcome type, external reference, verified flag and verification source — and passes the same admission discipline: authenticated, idempotency-checked, invalid submissions rejected.

Try the free demo measurement See pricing Start free — one provider key

What is an outcome record?

An outcome record is the ledger's unit of result evidence: the workflow it belongs to, the outcome type, an external reference from the system of record, a verified flag and the verification source. OutcomeMeter accepts outcome records through its outcome API, its HMAC-signed webhook and CSV import, and joins them to cost events to compute cost per verified success.

Start from the system of record, not from preference

The door choice is dictated by the confirming system's capabilities, not by engineering taste. Ask of the helpdesk, CRM or store platform three questions: can it call an external API when an outcome occurs (use the outcome API); can it emit webhooks we can sign or configure with a secret (use the signed webhook); or can it only produce exports (use CSV import, on a weekly or monthly cadence). Many estates use two doors at once — the modern helpdesk webhooks its resolutions while the legacy case system sends a Monday file — and the ledger treats their records identically, because the record shape never changes.

What never works is the fourth option teams quietly default to: a human re-typing outcomes into a spreadsheet from memory. It produces records without reliable references, on an unsustainable cadence, with errors nobody can detect. If that is your current state, CSV import of the source system's own export is the upgrade — same effort, evidentiary quality transformed.

The API door: direct, key-authenticated, idempotent

The outcome API (POST /api/outcomes) authenticates with the same license key as the cost ingest and applies the same rules: idempotency keys mean a retried submission never double-counts an outcome; invalid records are rejected and write nothing. It suits systems under your control — your own application marking an order kept, your workflow platform confirming a case closure — where the caller can hold the key and wants a synchronous answer per record.

Send records at the moment the outcome occurs, from the code path that learns of it, with the external reference captured from the source system in the same breath. Retrofitting references later (matching outcomes to tickets by timestamp archaeology) is the kind of join that fails precisely on the records a dispute will ask about.

The webhook door: for systems that emit, signed so they can be trusted

Event-driven systems of record — helpdesks firing on resolution, commerce platforms on order state — meet the signed webhook (POST /webhooks/outcomes). The sender signs each delivery's exact body with HMAC-SHA256 using the per-account secret; the receiver verifies before anything is written, and a bad signature is rejected totally. The signing exists because outcome records move money-adjacent metrics: the endpoint must know a delivery genuinely comes from the account's configured source.

Build the sender to production standards: sign the exact bytes transmitted, include the record's idempotency key so provider retries (webhook platforms retry aggressively) never double-count, and log your deliveries so a gap in the ledger can be matched against a gap in sending within minutes. The failure mode to rehearse once is the broken signature — it should present as a visible, total absence, which is the design working: nothing forged, nothing half-written.

The CSV door: files with first-class standing

CSV import (POST /api/outcomes/import) takes the source system's export — workflow, outcome type, external reference, verified flag, source per row — and lands the same records as the live doors, idempotency included, so a re-imported file does not double-count. Its disciplines are procedural: archive the source file with its import date (it is evidence), reconcile rows-in versus rows-accepted versus duplicates-skipped on every import, and run corrections as superseding imports rather than edited files.

Cadence converts the file door from adequate to good: weekly imports keep verification fresh enough for mid-month decisions and make month-end a non-event; monthly is the acceptable floor, aligned to reporting. What matters is that the cadence is a kept appointment, owned by a named person, because the ledger's verification coverage silently ages when a file is forgotten — and stale coverage flatters nothing, it merely blinds.

Corrections: the fourth flow every door must support

Whichever doors you use, outcomes will reverse, and the correction flow (POST /api/outcomes/correct) is how reversals arrive: a new entry superseding the original, which remains in the append-only history. Wire corrections at integration time, not after the first reopen storm: the source system that reports resolutions must also report reopenings through the same door, or the ledger's verified counts will drift optimistic at exactly the rate the real world changes its mind.

Test the full lifecycle once in staging — outcome in, correction in, counts move correctly, history shows both — before the first real record flows. Integrations tested only on the happy path are how ledgers acquire their first unexplained discrepancies, and a ledger with one unexplained discrepancy has a credibility problem out of proportion to the number.

Connect an outcome source properly: the 5-action checklist

Match the door to the system, capture references at the source, and wire corrections on day one.

  1. Interrogate the source system: API-capable, webhook-emitting or file-exporting — the answer picks the door (or doors).
  2. Capture the external reference at the source: ticket ID, case number or order reference rides on the record from birth, never reconstructed later.
  3. Implement idempotency on your side: keys generated per outcome and resent on retries, for API, webhook and file doors alike.
  4. Wire corrections through the same door: reversals arrive as superseding entries from the moment the integration goes live.
  5. Rehearse the lifecycle in staging: record in, duplicate absorbed, bad signature rejected (webhook), correction superseding — all verified before real data flows.

Worked example: a fictional firm's three systems, three doors

A fictional firm, Halloway & Bright, connects three outcome sources to the ledger in one quarter. Its helpdesk fires signed webhooks on ticket resolution — live verification for the support workflow from day one. Its own order platform calls the outcome API when an order passes its returns checkpoint, references included. Its legacy case system, incapable of either, exports a Monday CSV of closed cases, imported by a named operator who archives each file and reconciles counts in a two-minute ritual.

By quarter's end, verification coverage across the firm's workflows stands at 88%, cost per verified success is the headline in its client reporting, and a dispute about one workflow is settled from a pack that exhibits records from all three doors side by side — indistinguishable in standing, each carrying its source. The doors were plumbing; the record was the product.

OutcomeMeter runs this measurement on your own provider spend: connect a key on the free tier, watch the demo measurement first if you want to see the shape of the output, and read accepted-outcome economics when you are ready to value accepted work. The guides index collects every guide in this series.

Frequently asked questions

Which door should my system use?

The one it can operate reliably: the outcome API for systems that can make key-authenticated calls; the signed webhook for event-emitting systems of record; CSV import for file-based systems and history. Estates often use two or three doors at once — records are identical in standing.

What must every outcome record contain?

The workflow, the outcome type, an external reference from the system of record, the verified flag and the verification source. The reference is what makes the record checkable later — capture it at the source, never reconstruct it.

How are duplicate outcome records prevented?

Idempotency keys on every door: API submissions, webhook deliveries (whose platforms retry aggressively) and CSV re-imports are all recognized and counted once. Test it deliberately with a small file or a repeated delivery before trusting the pipeline.

Why must the webhook be signed?

Because outcome records move metrics that bills and scaling decisions rest on. The HMAC-SHA256 signature, computed with the per-account secret over the exact body, proves the delivery's origin and integrity; bad signatures are rejected and write nothing.

How do corrections flow?

Through the correction endpoint, as new entries that supersede the originals in the append-only ledger — whichever door the original used. Wire the correction path when you integrate, not after the first wave of reopens.

Keep reading

← Back