{"name":"Tenhatch Checks receipt","version":1,"issuer":"checks.tenhatch.com","about":"Every check that answers returns a receipt: which check, which version, when, SHA-256 fingerprints of the input as the check read it and of the full result, the answer in one word, the data date, the rules with the day each was last checked, and the credits used. The input itself is never stored or put in the receipt.","fields":{"v":"The format version (1).","id":"rcpt_ and 24 lowercase hex characters.","issuer":"checks.tenhatch.com.","keyId":"The first 16 hex characters of the SHA-256 of the raw 32-byte Ed25519 public key that signed it.","check":"The check’s id, as GET /api/v1/checks lists it.","checkVersion":"Bumped when what the check reads or how it decides changes.","at":"When the check answered (ISO 8601, UTC).","inputSha256":"SHA-256 (hex) of the canonical JSON of the input as the check read it (the `input` in the answer).","resultSha256":"SHA-256 (hex) of the canonical JSON of the full result (the `result` in the answer).","answer":"The answer in one word.","dataAsOf":"The date of the data the check read, by source, or null.","rules":"The rule records the answer rests on: their ids and the day each was last checked.","credits":"Credits the check used (0 for a free check)."},"canonicalJson":"JSON with object keys sorted by code point at every level, no spaces or line breaks, arrays in their order, strings and numbers as JSON.stringify writes them, and members whose value is undefined left out.","signature":{"algorithm":"Ed25519 (RFC 8032), \"EdDSA\" in JWK terms","over":"The UTF-8 bytes of the canonical JSON of `receipt`.","encoding":"base64url without padding."},"keys":"https://checks.tenhatch.com/.well-known/tenhatch-checks-keys.json","verifyOnline":"https://checks.tenhatch.com/api/v1/receipts/verify","lookup":"https://checks.tenhatch.com/api/v1/receipts/{id}","steps":["Take `receipt` from the answer exactly as received and write its canonical JSON.","Find the key whose `kid` equals `receipt.keyId` in the keys document (current or retired).","Verify the Ed25519 signature (base64url) over the canonical JSON’s UTF-8 bytes with that key.","To show a receipt was made for an input you hold, compare SHA-256 of the input’s canonical JSON with `receipt.inputSha256`."],"schema":{"type":"object","properties":{"receipt":{"type":"object","properties":{"v":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"id":{"type":"string","description":"rcpt_ and 24 hex characters."},"issuer":{"type":"string"},"keyId":{"type":"string","description":"Which published key signed it."},"check":{"type":"string"},"checkVersion":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"inputSha256":{"type":"string","description":"SHA-256 of the canonical JSON of the input you sent."},"resultSha256":{"type":"string","description":"SHA-256 of the canonical JSON of the result."},"answer":{"type":"string"},"dataAsOf":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","null"]}},{"type":"null"}]},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"lastChecked":{"type":"string"}},"required":["id","lastChecked"],"additionalProperties":false}},"credits":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["v","id","issuer","keyId","check","checkVersion","at","inputSha256","resultSha256","answer","dataAsOf","rules","credits"],"additionalProperties":false,"description":"What was checked, when and with what answer, without the input itself."},"signature":{"type":"string","description":"Base64url Ed25519 signature over the canonical JSON of `receipt`."},"url":{"description":"Where anyone can look the receipt up.","type":"string"}},"required":["receipt","signature"],"additionalProperties":false,"description":"A signed receipt. Keep it with your records."},"testVector":{"about":"A test receipt signed by a key that never signs real receipts. Verify its signature with `key`; the SHA-256 of the canonical JSON of `input` equals `receipt.inputSha256`.","key":{"kty":"OKP","crv":"Ed25519","x":"MUFRcDklAo_5QmiNlztscRwhRsqHKDN7GOTpTmV9LaM","kid":"f6a062b0d63a3112","use":"sig","alg":"EdDSA"},"input":{"text":"STOP","exclusiveMethod":"reply-words","messageKind":"marketing"},"canonicalInput":"{\"exclusiveMethod\":\"reply-words\",\"messageKind\":\"marketing\",\"text\":\"STOP\"}","receipt":{"v":1,"id":"rcpt_000000000000000000000001","issuer":"checks.tenhatch.com","keyId":"f6a062b0d63a3112","check":"sms-opt-out","checkVersion":"2","at":"2026-11-25T16:00:00.000Z","inputSha256":"c53edd39f765e84c078732689a25e24349eceeceed161cf09749635047060846","resultSha256":"617818ac7f8b5e48463d442b01a2d8345bbaebbea22b30fcd4229650edcaf05e","answer":"opt_out","dataAsOf":null,"rules":[{"id":"us-fcc-47-cfr-64-1200-a-10","lastChecked":"2026-11-13"}],"credits":0},"signature":"t3zstMvkAA_5lre3xeG4xo8lGIccgTCGfEz6h6hxVF3488f5fZJkZONQrhd0PiCDM1wAYa85vsmuPNKJWqzQDA"}}