{"slug":"api-zfinia-com-x402-v1-http-header-contract-audit-32060d","title":"Audit one set of response headers against a contract the caller states","host":"api.zfinia.com","method":"POST","resource":"https://api.zfinia.com/x402/v1/http-header-contract-audit","category":"code","description":"Audit one set of response headers against a contract the caller states: headers that must be present, headers that must not be, and exact, prefix or substring rules on values. Also reports a header repeated with different values, where which one a client uses varies; an absent Content-Type, which fo","price_listed":0.12,"price_asked":0.12,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":5314,"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":{"forbidden":["Server","X-Powered-By"],"require_cache_directives":true,"required":["Cache-Control","Content-Type"],"values":{"Content-Type":{"starts_with":"application/json"},"X-Frame-Options":"DENY"}},"headers":{"Content-Type":"application/json","Server":"example-edge/2.1","Vary":["Accept-Encoding","Origin"],"X-Request-Id":["a1","b2"]},"status":200},"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":{"forbidden":{"items":{"maxLength":128,"type":"string"},"maxItems":100,"minItems":1,"type":"array"},"require_cache_directives":{"type":"boolean"},"required":{"items":{"maxLength":128,"type":"string"},"maxItems":100,"minItems":1,"type":"array"},"values":{"type":"object"}},"type":"object"},"headers":{"type":"object"},"status":{"type":"integer"}},"required":["headers"],"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":5314,"error":null}],"description_full":"Audit one set of response headers against a contract the caller states: headers that must be present, headers that must not be, and exact, prefix or substring rules on values. Also reports a header repeated with different values, where which one a client uses varies; an absent Content-Type, which forces a client to sniff; and a textual Content-Type with no charset. Optionally reports absent cache directives and no validator at all, which makes a conditional request impossible.","last_updated":"2026-10-04T08:16:23.238Z","schemes":["exact"]}