Skip to content
ndStill is in development. These docs describe the v2 API as designed; the SDKs and the hosted MCP server are previews and not generally available.
Docs

Evidence and receipts

The signed, hash-chained, anchored record of every step, receipts, and evidence packs.

Every step of an agent payment is written to an evidence record: the instruction, the request, the decision with its trace, the approval with its signatures, the credential, the authorization, the receipt and the settlement. Each event is signed, chained to the one before, and anchored to a public timestamp every hour. Anyone with the record can check later that nothing was changed, without trusting ndStill's word for it.

What gets recorded#

Evidence events
EventWritten when
mandate.signedA person signs an instruction.
intent.createdAn agent asks to pay.
decision.madeThe pipeline approves, holds or declines, with the trace and the policy version hash.
approval.decidedA person approves or rejects, with their passkey signature.
credential.minted, credential.revokedA scoped card, token or payment approval is minted or revoked.
authorization.approved, capture.posted, settlement.posted, refund.postedThe payment moves on the rail.
receipt.issuedThe buyer's, the seller's and ndStill's signatures over the purchase.
freeze.applied, freeze.liftedWho froze what and why.
dispute.opened, dispute.closedA dispute starts and ends.
policy.activatedA policy version goes live.

Operational changes (a renamed agent, a new API key) go to the separate audit log. Money-affecting human actions go to both.

How the chain works#

  1. The event's payload is canonicalized with JCS (RFC 8785) and hashed with SHA-256: payload_hash.
  2. The event hash links it to the previous event in the org's chain: event_hash = SHA-256(prev_hash || payload_hash || meta).
  3. The event hash is signed with the evidence key for the region (Ed25519, with a published key ID and rotation schedule): signature, kid.
  4. Every hour, a Merkle tree is built over every org's chain head. Its root is timestamped by an RFC 3161 timestamp authority and logged in a public transparency log. Each org can fetch the inclusion proof for its events.
JSON
{
  "id": "evt_01JD…",
  "object": "evidence_event",
  "seq": 18422,
  "type": "decision.made",
  "subject": { "object": "decision", "id": "dec_01JD…" },
  "intent_id": "pi_01JD…",
  "payload_hash": "sha256:7c1e…",
  "prev_hash": "sha256:a90b…",
  "event_hash": "sha256:4f3d…",
  "signature": "ed25519:MEUCIQ…",
  "kid": "ev-us-2026-10",
  "verified": { "signature": true, "chain": true, "anchor": null }
}

verified.anchor is null until the hourly anchor that includes the event is published. The console shows this as a small verified mark that expands into the proof details.

Verifying#

  • GET/evidence/verify checks an event or a pack: signature, chain continuity, inclusion proof and anchor.
  • The open-source verifier does the same checks offline, from a downloaded pack, with no call to ndStill. The public evidence verifier page runs it in the browser.

Verification never requires trusting the API that produced the record: the anchor is public and the signing keys are published.

Receipts#

A receipt is the purchase both sides agree happened. It holds the mandate hash, the request hash, the response hash, the amount, the asset, the counterparty and the rail, with signatures from the buyer's agent, the seller (when the seller runs Accept or Verify) and ndStill. The format is designed to be compatible with AP2 receipts. Agents fetch theirs with the MCP get_receipt tool; sellers see them in the Receipts API and can re-check one with POST/receipts/{id}/verify.

Evidence packs#

A pack bundles the events and proofs for a purpose, as a PDF for people and JSON with proofs for machines:

Evidence pack kinds
`kind`For
auditA period of activity, for finance and auditors.
disputeOne payment: the mandate, trace, approvals, receipts and delivery data.
insurerA claim under the planned ndStill Guarantee.
sellerA seller's receipt history.

Build one with POST/evidence/packs; it's building and then ready. Share it with a time-limited guest link (POST/evidence/packs/{id}/share), watermarked, which auditors and insurers can open without an account.

Retention and privacy#

Evidence payloads are designed to be kept in write-once storage for at least seven years, longer where consumer regulation requires. Personal data inside a payload is encrypted per subject, so a deletion request is honoured by destroying that key: the chain keeps only hashes, and still verifies.

Read next: Test mode, simulation and replay, which deliberately writes nothing to evidence.