Verify a receipt envelope
POST /api/v1/receipts/verify
Verifies the ECDSA P-256 signature, the chain linkage, and the claim schema. Does not require a logged-in user; verification is public.
This operation needs no authentication.
Request body
application/json ReceiptsVerifyRequest
receiptOpenReceiptEnvelope required
Generated sample
{
"receipt": {
"alg": "ecdsa-p256-sha256",
"chain": {
"chain_id": "string",
"prev_hash": "string",
"seq": 0
},
"claims": {
"egress_attestation": {
"attester": "desktop",
"attester_build_hash": "string",
"zero_payload_proof": {}
},
"routing_decision": {
"model": "string",
"provider_id": "string",
"provider_region": "string",
"reason": "user-selected"
},
"tokenisation": {
"detectors": [
{
"count": 0,
"fingerprint_hmac": "string",
"id": "string",
"version": "string"
}
],
"input_hash": "string",
"level": "tokenise-reversible",
"output_hash": "string",
"tokeniser_binary_hash": "string"
},
"x-cloakapi-detection": {
"basis": "client_declared",
"coverage": "rules_only",
"engine_identity": "not_declared"
}
},
"exp": 0,
"iat": 0,
"iss": "https://example.com",
"jti": "string",
"kid": "string",
"nbf": 0,
"sig": "string",
"sub": "string",
"v": "v1"
}
}Responses
200 Verification result
application/json ReceiptsVerifyResponse
chain_okbooleanerrorstring or nullkidstringseqintegervalidboolean
Generated sample
{
"chain_ok": true,
"error": "string",
"kid": "string",
"seq": 0,
"valid": true
}400 The request body does not contain a recognized receipt payload.
application/json object
errorobject requiredcodestring requiredOne of:"invalid_payload"messagestring required
410 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Malformed receipt
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string