{"slug":"api-zfinia-com-x402-v1-api-response-contract-audit-caf6f2","title":"Audit an HTTP response you captured against a contract you declare","host":"api.zfinia.com","method":"POST","resource":"https://api.zfinia.com/x402/v1/api-response-contract-audit","category":"code","description":"Audit an HTTP response you captured against a contract you declare: expected status or status class, required and forbidden headers, header value rules, and a body schema. Header names compare case-insensitively. You supply the response, so this works against an API behind authentication or on a pri","price_listed":0.12,"price_asked":0.12,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":2461,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"contract":{"body_schema":{"properties":{"data":{"type":"object"}},"required":["data"],"type":"object"},"expected_status":["2xx"],"forbidden_headers":["x-powered-by"],"header_values":{"content-type":{"starts_with":"application/json"}},"required_headers":["x-request-id"]},"response":{"body":{"error":"upstream unavailable"},"headers":{"Content-Type":"text/html; charset=utf-8","X-Powered-By":"Express"},"status":503}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"contract":{"additionalProperties":false,"properties":{"body_schema":{"type":"object"},"expected_status":{},"forbidden_headers":{"items":{"maxLength":128,"type":"string"},"maxItems":50,"type":"array"},"header_values":{"type":"object"},"required_headers":{"items":{"maxLength":128,"type":"string"},"maxItems":50,"type":"array"}},"type":"object"},"response":{"additionalProperties":false,"properties":{"body":{},"headers":{"type":"object"},"status":{"maximum":599,"minimum":100,"type":"integer"}},"required":["status"],"type":"object"}},"required":["response","contract"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.12,"price_match":true,"latency_ms":2461,"error":null}],"description_full":"Audit an HTTP response you captured against a contract you declare: expected status or status class, required and forbidden headers, header value rules, and a body schema. Header names compare case-insensitively. You supply the response, so this works against an API behind authentication or on a private network.","last_updated":"2026-10-04T07:51:33.242Z","schemes":["exact"]}