attest Docs

Reference

Receipt fields

Read every field of an exported receipt and know which ones are signed.

Where receipts come from #

Each event accepted through POST /v1/events returns a signed receipt (payload, hash, signature) that the caller can verify with attest's published key. Receipts in API responses describes it. POST /v1/traces returns the same receipt for each span.

POST /v1/witness does not return a receipt. A witness response includes each observation's receiptId.

Any receipt, including a witness receipt, can also be downloaded from the dashboard as attest-proof.json (Activity, then Download Proof JSON). Export fields describes that file.

Receipts in API responses #

The receipts array in a POST /v1/events or POST /v1/traces response has one entry per event, in request order. attest builds each entry from the record it stored, and returns it only after that record is committed. Error responses contain no receipt.

FieldDescription
statusaccepted when this request created the record. duplicate when an earlier request with the same eventId created it. A duplicate returns that original receipt, with the same hash and signature.
attestation_idRecord identifier, taken from the signed payload. The same value as receipt_id in an export.
verified_atWhen attest accepted the record (ISO 8601, UTC). For a duplicate, the time of the original acceptance.
payloadThe signed canonical JSON string, exactly as stored. Verify these exact bytes and do not re-serialize them. See Signed payload: events.
hashSHA-256 of payload (UTF-8), lowercase hex.
signatureBase64 RSA-SHA256 signature over the UTF-8 bytes of hash.
signer.fingerprintFingerprint of the current signing key, as returned by GET /.well-known/attest-signing-key, when that key verifies the receipt. null when an earlier key signed it. The response contains no key material.

A response receipt has no verification_scope field, but the same limits apply. See What a valid receipt proves.

Example · JSON (one receipts entry)
{
  "status": "accepted",
  "attestation_id": "otlp_d364c0280e22f7b0e183a71f187b0270",
  "verified_at": "2026-10-19T14:03:07.214Z",
  "payload": "{\"attestation_id\":\"otlp_d364c0280e22f7b0e183a71f187b0270\",...}",
  "hash": "b74becb11d03de3606d4080f4be632ad6320da244cef20651d894a6ca2a8b7f5",
  "signature": "M9U1o7wgXZnxB5KI/XZMJtZhASk22ZFDfkQYVYHKgcHC...",
  "signer": {
    "fingerprint": "sha256:552054128c0ca6f3fe6b6ef38e062f22593705e2e10a648a20418434f53b5e12"
  }
}

Export fields #

FieldDescription
formatAlways attest-proof-export-v1.
receipt_idRecord identifier. Events: otlp_ followed by 32 hex characters, for both OTLP and native events. Witness observations: moni_wit_ followed by a UUID.
customer_idYour account identifier.
environment_idThe environment the record belongs to.
statusverified.
verified_atWhen attest accepted the record (ISO 8601, UTC).
billabletrue when the record counted as a Verification Pass.
metadataUnsigned summary: source_type, event_type, action_type, actor_type, model_or_tool, outcome.
proof.payloadThe signed canonical JSON string. Verify these exact bytes and do not re-serialize them.
proof.hashSHA-256 of proof.payload (UTF-8), lowercase hex.
proof.signatureBase64 RSA-SHA256 signature over the UTF-8 bytes of proof.hash.
proof.algorithmsha256.
proof.signature_schemeRSA-SHA256.
signerWhen the current key verifies the receipt: public_key, fingerprint, fingerprint_algorithm, signature_scheme, trust, and status: "key_available". Otherwise status: "historical_key_required" with null key fields.
verification_scopeFour plain-language statements of what the receipt does and does not establish: integrity, provenance, completeness, metadata.
Example · JSON
{
  "format": "attest-proof-export-v1",
  "receipt_id": "otlp_d364c0280e22f7b0e183a71f187b0270",
  "customer_id": "79e99bf5-9836-496a-a846-9533be1c4a16",
  "environment_id": "1f7133e2-ec96-4c4c-89d1-ebdb7ca3dde3",
  "status": "verified",
  "verified_at": "2026-10-19T14:03:07.214Z",
  "billable": true,
  "metadata": {
    "source_type": "native_json",
    "event_type": "ai.agent.tool_call",
    "action_type": "search",
    "actor_type": "agent",
    "model_or_tool": "summarizer-v2",
    "outcome": "ok"
  },
  "proof": {
    "payload": "{\"attestation_id\":\"otlp_d364c0280e22f7b0e183a71f187b0270\",...}",
    "hash": "b74becb11d03de3606d4080f4be632ad6320da244cef20651d894a6ca2a8b7f5",
    "signature": "M9U1o7wgXZnxB5KI/XZMJtZhASk22ZFDfkQYVYHKgcHC...",
    "algorithm": "sha256",
    "signature_scheme": "RSA-SHA256"
  },
  "signer": {
    "public_key": "-----BEGIN PUBLIC KEY-----\n...",
    "fingerprint": "sha256:552054128c0ca6f3fe6b6ef38e062f22593705e2e10a648a20418434f53b5e12",
    "fingerprint_algorithm": "sha256-spki-der",
    "signature_scheme": "RSA-SHA256",
    "trust": "Confirm this fingerprint through a separately authenticated channel before trusting signer provenance.",
    "status": "key_available"
  },
  "verification_scope": {
    "integrity": "Verify the exact proof.payload bytes, hash and signature.",
    "provenance": "The included public key is not independently trusted.",
    "completeness": "An individual receipt does not establish sequence or complete-history coverage.",
    "metadata": "Only fields inside proof.payload are signed; surrounding display metadata is not evidence."
  }
}

Signed payload: events #

For events from POST /v1/events, proof.payload uses the attest-native-event-v1 contract. Keys are sorted, and absent values are explicit null.

FieldDescription
signing_contractattest-native-event-v1.
attestation_idSame as receipt_id.
customer_id, environment_idWhere the record belongs.
timestampattest's verification time.
event.event_typeYour eventType.
event.source_versionYour source.
event.action_type, event.actor_typeYour action and actorType, or unknown.
event.model_or_toolYour model, else tool, else null.
event.outcomeYour outcome, or unknown.
event.timestampYour timestamp, normalized to milliseconds, or null.
event.external_event_idKeyed pseudonym (psn_ + 64 hex) of your eventId.
event.source_payload_hashSHA-256 of the canonical JSON (sorted keys) of your full request body, including metadata.
event.source_type, event.workflow_id, event.tenant_idnative_json, native_json, and your customer_id.
event.actor_id, event.parent_event_id, event.policy_version, event.duration, event.input_hash, event.output_hashAlways null for POST /v1/events.
Example · JSON (proof.payload, formatted)
{
  "attestation_id": "otlp_d364c0280e22f7b0e183a71f187b0270",
  "customer_id": "79e99bf5-9836-496a-a846-9533be1c4a16",
  "environment_id": "1f7133e2-ec96-4c4c-89d1-ebdb7ca3dde3",
  "event": {
    "action_type": "search",
    "actor_id": null,
    "actor_type": "agent",
    "duration": null,
    "event_type": "ai.agent.tool_call",
    "external_event_id": "psn_888f8edbc9fb78a5d50ef730f2b4b7cf0824f63145c964935efee6825661bbb5",
    "input_hash": null,
    "model_or_tool": "summarizer-v2",
    "outcome": "ok",
    "output_hash": null,
    "parent_event_id": null,
    "policy_version": null,
    "source_payload_hash": "746008e2f5ff1714d69e8c671b4c66ab8643fdeeb3666340b22d22e8de0911e9",
    "source_type": "native_json",
    "source_version": "research-agent",
    "tenant_id": "79e99bf5-9836-496a-a846-9533be1c4a16",
    "timestamp": "2026-10-19T14:03:07.120Z",
    "workflow_id": "native_json"
  },
  "signing_contract": "attest-native-event-v1",
  "timestamp": "2026-10-19T14:03:07.214Z"
}

Signed payload: witness observations #

For witness observations, proof.payload uses the attest-witness-receipt-v1 contract.

FieldDescription
signing_contractattest-witness-receipt-v1.
attestation_idThe observation's receiptId.
customer_id, environment_idWhere the record belongs.
timestampattest's acceptance time.
contract_versionattest-boundary-evidence-v1.
pair_id, stage, event_idFrom your observation.
observation_timestampYour observation timestamp, normalized to milliseconds.
observation_hashSHA-256 of the canonical normalized observation.
evidence_hashSHA-256 of the canonical evidence. Equals evidenceHash in API responses.
credential_idIdentifier of the API key that submitted the observation.