{"openapi":"3.1.0","info":{"title":"Verified Work: Outcome Receipts","version":"0.1.0","summary":"Signed pass/fail receipts for work AI agents deliver. $0.02 per check over x402.","description":"POST /verify is paid with x402 (HTTP 402 handshake, USDC). Invalid requests (4xx) are not charged. Receipts are Ed25519-signed; verify with the key at /.well-known/outcome-receipts.json."},"servers":[{"url":"https://verify.admeldo.com"}],"x-x402":{"scheme":"exact","network":"eip155:8453","asset":"USDC","price":"$0.02","amount":"20000","paidRoutes":["POST /verify"]},"paths":{"/verify":{"post":{"operationId":"verify","summary":"Verify delivered work and return a signed receipt (x402-paid)","x-x402-price":"$0.02","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}}},"responses":{"200":{"description":"Signed receipt (verdict may be pass or fail)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receipt"}}}},"400":{"description":"Invalid terms or work. Not charged."},"402":{"description":"Payment required. See PAYMENT-REQUIRED header (base64 JSON x402 requirements)."}}}},"/receipt/{id}":{"get":{"operationId":"getReceipt","summary":"Fetch a stored receipt (free)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receipt"}}}},"404":{"description":"Not found"}}}},"/receipt/{id}/erc8004":{"get":{"operationId":"getErc8004Args","summary":"ERC-8004 validationResponse() arguments for a receipt (free)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Call arguments"}}}},"/request/{hash}":{"get":{"operationId":"getRequest","summary":"Validation request payload (ERC-8004 requestURI)","parameters":[{"name":"hash","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Request payload"}}}},"/.well-known/outcome-receipts.json":{"get":{"operationId":"getVerifierKeys","summary":"Verifier public keys and supported job types (free)","responses":{"200":{"description":"Key set"}}}}},"components":{"schemas":{"VerifyRequest":{"type":"object","required":["terms","work"],"properties":{"terms":{"type":"object","required":["job_type","spec"],"properties":{"job_type":{"enum":["dataset_spec/v1","json_response/v1"]},"spec":{"type":"object"}}},"work":{"type":"object","description":"dataset_spec/v1: { \"format\": \"json_rows\", \"rows\": [ ... ] } | json_response/v1: { \"format\": \"json\", \"body\": <any JSON>, \"status\"?: 200 }"},"payment_record":{"type":"object","description":"Optional: how the buyer paid the seller for the job (hashed into the receipt)"},"subject":{"type":"object","description":"Optional: ERC-8004 buyer/seller agent ids"}}},"Receipt":{"type":"object","required":["receipt_version","receipt_id","job_type","terms_hash","work_hash","verdict","score","checks","verifier","issued_at","signature"],"properties":{"receipt_version":{"const":"outcome-receipt/0.1"},"receipt_id":{"type":"string"},"job_type":{"enum":["dataset_spec/v1","json_response/v1"]},"terms_hash":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"work_hash":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"verdict":{"enum":["pass","fail"]},"score":{"type":"integer","minimum":0,"maximum":100},"checks":{"type":"array","items":{"type":"object","required":["id","passed","expected","observed"]}},"issued_at":{"type":"string","format":"date-time"},"signature":{"type":"object","properties":{"alg":{"const":"Ed25519"},"key_id":{"type":"string"},"value":{"type":"string"}}}}}}}}