Skip to main content
GET
/
v1
/
receipts
/
{id}
Get a single receipt by ID + verify its hash and signature
curl --request GET \
  --url https://api.example.com/v1/receipts/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.example.com/v1/receipts/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.example.com/v1/receipts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/receipts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.example.com/v1/receipts/{id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.example.com/v1/receipts/{id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/v1/receipts/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "seq": 42,
  "receiptId": "018f1234-5678-7abc-def0-123456789abc",
  "tenantId": "tenant-abc",
  "requestId": "req-abc-123",
  "actor": "user@example.com",
  "provider": "anthropic",
  "model": "claude-3-5-sonnet-20241022",
  "promptTokens": 1000,
  "completionTokens": 250,
  "costUsd": 0.00375,
  "checks": [
    {
      "name": "policy",
      "result": "allow"
    }
  ],
  "prevHash": "a1b2c3...",
  "thisHash": "d4e5f6...",
  "signature": "base64-encoded-sig",
  "keyId": "key-id-1",
  "ts": "2026-07-02 12:00:00.000",
  "verified": true,
  "checkLatenciesMs": {
    "AUTH": 2,
    "BUDGET": 5,
    "ALLOWLIST": 1,
    "GUARDRAIL": 8,
    "PII": 3
  },
  "packVersion": "v1",
  "kind": "model_call"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

receipt_id (UUID)

Response

seq
number
required
Example:

42

receiptId
string
required
Example:

"018f1234-5678-7abc-def0-123456789abc"

tenantId
string
required
Example:

"tenant-abc"

requestId
string
required
Example:

"req-abc-123"

actor
string
required
Example:

"user@example.com"

provider
string
required
Example:

"anthropic"

model
string
required
Example:

"claude-3-5-sonnet-20241022"

promptTokens
number
required
Example:

1000

completionTokens
number
required
Example:

250

costUsd
number
required
Example:

0.00375

checks
object[]
required
prevHash
string
required
Example:

"a1b2c3..."

thisHash
string
required
Example:

"d4e5f6..."

signature
string
required
Example:

"base64-encoded-sig"

keyId
string
required
Example:

"key-id-1"

ts
string
required
Example:

"2026-07-02 12:00:00.000"

verified
boolean
required

True when this_hash == sha256(canonical || prev_hash) and the ED25519 signature is valid.

Example:

true

checkLatenciesMs
object
required

GW-12: per-check enforcement latency in milliseconds, keyed by check name. NOT part of the signed canonical receipt (EVID-1) — observability data only. Empty on receipts written before this column existed.

Example:
{
"AUTH": 2,
"BUDGET": 5,
"ALLOWLIST": 1,
"GUARDRAIL": 8,
"PII": 3
}
packVersion
string
required

COMPLY-1: the compliance pack-set version in force when this receipt was emitted (WARDIN_COMPLIANCE_PACK_VERSION). NOT part of the signed canonical receipt — an unsigned, queryable side channel. Empty string on receipts written before this column existed or with the env var unset.

Example:

"v1"

kind
enum<string>
required

COMPLY-4: distinguishes an agent tool-call receipt (gateway /mcp/tool-call or /mcp/servers — provider = MCP server, model = tool name) from a model-inference receipt. NOT part of the signed canonical receipt — an unsigned, queryable side channel. Rows written before this column existed read back as model_call.

Available options:
model_call,
tool_call
Example:

"model_call"