Skip to navigation

Receipts & Compliance

Retrieving receipts and generating audit bundles

Every ingested event produces an Agent Work Receipt — a tamper-evident record of what the AI agent did, when, and what the compliance verdict was.

List receipts

for receipt in client.receipts.list():
print(receipt.receipt_id, receipt.compliance.verdict)

Get a single receipt

receipt = client.receipts.get(receipt_id="rcpt_01HXYZ")

Policy decisions

Each receipt carries one or more policy decisions from your active rule packs:

decisions = client.receipts.list_policy_decisions(receipt_id="rcpt_01HXYZ")
for decision in decisions:
print(decision.rule_pack_id, decision.verdict)

Audit bundles

Generate a signed, exportable bundle for a regulator or payer:

bundle = client.audit.create_bundle(
receipt_ids=["rcpt_01", "rcpt_02"],
format="json",
scope="full",
)
print(bundle.bundle_id, bundle.status)

Retrieve the bundle when ready:

bundle = client.audit.get_bundle(bundle_id=bundle.bundle_id)