Audit an HTTP response you captured against a contract you declare
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.
Answeringour last check, 2026-10-04
1 of 1checks answered this week
2461 msmedian answer time
$0.12listed price per call
$0.12price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.zfinia.com/x402/v1/api-response-contract-audit
| Category | Code and developer |
|---|---|
| Provider host | api.zfinia.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-04 | valid payment request | 402 | $0.12 | 2461 ms |
Example input (from the provider)
{
"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"
}
Promised output schema (from the provider)
{
"$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"
}