Skip to main content
Menu
Get started / Receipts and verification
Get started

Receipts and verification

What a receipt is, what each verification level shows, and what checking one yourself does and does not establish.

10 minute readUpdated 13 November 2026curl · Python · TypeScript

What a receipt is#

A receipt is a signed record that binds the exact request and response bytes to Panward's attested gateway and states what the gateway verified about the upstream. It holds an ordered list of events (request.received, policy.applied, route.selected, request.forwarded, upstream.verified, response.received, response.emitted), usage counts, the gateway's release and configuration hashes, the id of the signing key and the signature.

It holds no prompt and no response, no prices, and no name of who served the model. A policy refusal also has a signed receipt, with decision: "deny" in its policy.applied event. Only the organization that made the request can read its receipts, with an API key that has receipts.read.

Fetch a receipt#

The id is in the panward-receipt-id header of every response. A receipt is pending when the response ends: it has the events up to response.emitted and no signature. It becomes final when the gateway has processed the upstream proof, usually within a second, or at the 60-second proof deadline, in which case upstream.verified.result is failed with a reason. Receipts are kept for your organization's retention period; after that the endpoint returns 404 not_found.

Fetch a receipt
curl https://api.panward.ai/v1/receipts/rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M \
  -H "Authorization: Bearer $PANWARD_API_KEY"
A pending receipt: events up to response.emitted, no signature
{
  "format": "panward.receipt/1",
  "id": "rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M",
  "status": "pending",
  "created_at": 1790000000,
  "endpoint": "/v1/chat/completions",
  "stream": true,
  "model": "z-ai/glm-5.3",
  "tier": "sealed",
  "organization": "org_01JB2K7M4T",
  "project": "prj_01JB2K9P6W",
  "key_id": "key_01JB3A1C8E",
  "region": "eu",
  "events": [
    {
      "type": "request.received",
      "body_sha256": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae"
    },
    {
      "type": "policy.applied",
      "policy_version": 12,
      "decision": "allow",
      "constraints": [
        "sealed_only",
        "region:eu"
      ]
    },
    {
      "type": "route.selected",
      "offer_class": "sealed",
      "attempt": 1
    },
    {
      "type": "request.forwarded",
      "body_sha256": "fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9",
      "channel": "tls_pinned",
      "attempt": 1
    },
    {
      "type": "response.received",
      "body_sha256": "18ac3e7343f016890c510e93f935261169d9e3f565436429830faf0934f4f8e4",
      "attempt": 1
    },
    {
      "type": "response.emitted",
      "body_sha256": "3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278",
      "bytes": 18234,
      "complete": true
    }
  ],
  "gateway": {
    "attestation_id": "sha256:a3f1c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3",
    "release": "2026.11.3",
    "config_bundle": "sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
    "verification_policy": "sha256:6f5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e"
  }
}

Wait for final with a short delay that grows:

Wait for a receipt to become final
import os, time
import requests

BASE = "https://api.panward.ai/v1"
headers = {"Authorization": f"Bearer {os.environ['PANWARD_API_KEY']}"}

delay = 0.2
deadline = time.monotonic() + 60
while True:
    r = requests.get(f"{BASE}/receipts/rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M", headers=headers)
    r.raise_for_status()
    receipt = r.json()
    if receipt["status"] == "final" or time.monotonic() > deadline:
        break
    time.sleep(delay)
    delay = min(delay * 2, 5)

GET /v1/receipts?ids=, which fetches up to 100 receipts in one call, is part of the contract and is not served yet.

Verification levels#

The level reached is stated per response, in the receipt. A Sealed label always comes with its sub-label, and a response is called Sealed only once its receipt is final at a Sealed level. Until then it is "Verification pending".

LevelLabelWhat the gateway checkedWhat it shows, and what it does not
sealed_model_signedSealed · model enclave pool signedThe model enclave's key signed the exact upstream request and response hashes. That key was bound in a quote the gateway verified with its own fresh nonce under the current verification policy.That the bytes the gateway exchanged with the upstream were signed by a key held by an attested pool of model enclaves. It does not show which instance served the response, that the GPU was in a protected state, where the model's weights came from, or absence of physical attacks.
sealed_attested_pathSealed · attested pathAn attested gateway enclave on the upstream hop signed the exact request and response hashes, under a keyset bound in a quote the gateway verified, and evidence for the serving model environment passed Panward's policy.That the upstream hop ran through an attested gateway enclave that itself verified a model environment. It does not show that the model enclave signed this response, which instance served it, the GPU's state, or absence of physical attacks.
sealed_attested_channelSealed · attested channelNo signature. The upstream's enclave evidence was fetched with the gateway's own nonce and verified under the current policy; it binds a TLS or encryption key, and the request and response went over TLS pinned to that key or with their bodies encrypted to it.That the bytes the gateway exchanged came from, and could only be read by, the holder of a key that a measured, allowlisted enclave proved it held at the time of the gateway's nonce. Nobody can re-check this response against the upstream later, because no upstream signature exists; Warden can re-appraise the archived evidence. It does not show which instance served it, what an enclave behind a gateway enclave did, the GPU's state, or absence of physical attacks. It is the weakest Sealed level: a policy whose minimum is the attested path excludes it.
routedRoutedPanward's own gateway processed the request. No upstream enclave evidence exists.That the receipt binds the request and response bytes to Panward's attested gateway. It shows nothing about confidentiality at the upstream: the provider can read the prompt.
failedVerification failedAn expected proof was missing, late, invalid or against policy.That Panward detected the problem. If the response had already been streamed, it was delivered. A failed Sealed request is credited automatically.

An upstream.verified event also states signer_scope, instance_bound and gpu_binding, so the narrower meaning travels with the receipt. A GPU attestation reported by the operator is a recorded claim, not bound to the response, and never raises a level.

The upstream channel#

Each request.forwarded event states, in channel, what the gateway checked about the connection to the upstream for that attempt, and never more.

channelWhat the gateway checkedWhen you see it
tlsTLS with the upstream's certificate checked against public certificate authorities. The connection was not pinned to a key bound by evidence.Routed offers, and Sealed offers whose evidence binds no TLS key.
tls_pinnedTLS pinned to a key bound by evidence the gateway verified with its own nonce. A connection to any other key is refused before a byte of the request is sent.Sealed offers whose evidence binds the upstream's TLS keys.
encrypted_to_model_enclaveTLS, with the message content also encrypted to the model enclave's key, bound by evidence the gateway verified. The forwarded hash covers ciphertext.Sealed offers whose model environment exposes such a key.
encrypted_to_gateway_enclaveTLS, with the request and response bodies also encrypted (HPKE) to the upstream gateway enclave's key, bound by evidence the gateway verified with its own nonce. Only that enclave could read the request or produce the response. The forwarded hash covers the plaintext body.Sealed offers at the attested-channel level whose gateway enclave exposes such a key.

The value is the gateway's statement. Warden reports it in step 5 with the rest of what the gateway states; it does not check the upstream connection itself. Receipts written before the value tls existed stay valid.

What a receipt proves, and what it does not#

Checking a receipt shows

  • The receipt was signed by Panward's gateway, running software whose measurements are on the published release list, in an enclave whose attestation Warden checked (steps 1 to 3).
  • When you supply them, the request and response bytes you hold are the ones the gateway received and wrote (step 4).
  • What the gateway states it verified about the upstream: the level, the signer scope and the evidence it relied on, named by content hash. This part is the gateway's statement. Warden reports it and does not check it against the upstream.

It does not show

  • That the answer is correct. Models still make mistakes.
  • What your own application does with the response afterwards.
  • It does not establish which instance served the request, whether the GPU was in a protected state, or where the model's weights came from.
  • Protection against someone with physical access to the hardware. Attestation protects against software and administrators. It cannot rule out someone with physical access to the hardware.
  • Anything about confidentiality at the upstream for a Routed request: the upstream provider can read the prompt.
Attestation protects against software and administrators. It cannot rule out someone with physical access to the hardware.

Verify it yourself#

"Verify it yourself" always means checking Panward's gateway and what it states. You, with Warden, can check three things: that the gateway is the published, measured software in a genuine enclave; that the receipt was signed by that gateway and matches your exact bytes; and what the gateway states it verified about the upstream. The third is delegated: you cannot see the upstream's evidence, so you rely on the attested, open-source gateway having checked it. The receipt commits to that evidence by content hash, so the statement cannot be changed afterwards.

Going further, an auditor under an agreement with confidentiality terms can obtain the archived upstream evidence a receipt commits to and re-run every check. Warden's audit command in the current build lists which of those evidence objects are present in a directory; it does not re-check the upstream proofs.

$ warden verify receipt.json --request request.json --response response.bin

The command line page lists the six steps, the verdicts and the exit codes.

The gateway's attestation#

GET /v1/attestation?nonce= returns a fresh attestation document from the gateway instance that answers, bound to a nonce you choose. It needs no key. A verifier checks that the quote is genuine and current, that the quote binds your nonce and the document's keyset, that the measurements equal a row of the published release list, and that the runtime values are signed by an attested key. Instances generate their own keys at boot, so verifiers pin measurements, not keys.

A fresh attestation document, bound to your nonce
curl "https://api.panward.ai/v1/attestation?nonce=5f3c9a1e7b2d4c6f8a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f"

The release list is GET /public/releases, which is not served yet; until it is, Warden reads a release file you give it with --releases.

Streams and your own bytes#

Nothing is added to a response body or to an event stream, so the receipt's response.emitted hash covers the bytes the gateway wrote to the connection: for a stream, every byte of the event stream including data: [DONE]. The request.received hash covers the exact request body bytes, including a multipart body as sent. Keep those bytes exactly as your client sent and received them, before any parsing, if you want step 4 of verification to run. Without them the verdict is verified_without_content: "Gateway signature valid. Contents not checked."

Download a receipt and its evidence bundle#

A receipt's screen in the console downloads it. Export JSON gives the receipt as it is stored. On a receipt whose verification failed, Evidence bundle gives evidence-<id>.json: one JSON object of format panward.receipt-bundle/1 with the receipt, the archived attestation document it names and the published verification policies. The attestation is included only when its SHA-256 equals the receipt's gateway.attestation_id; when it cannot be read the download answers 503 receipt_unavailable, and you retry later. The bundle holds no upstream evidence documents: the receipt carries their hashes.

Warden reads the bundle in place of the receipt:

Verify an evidence bundle against your bytes
$ warden verify --bundle evidence-rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M.json \
    --request request.json --response response.bin

The Verify offline guide verifies with no network at all.

Was this page helpful?Suggest an edit