Audit a real request against the OpenAPI document it should satisfy
Audit a real request against the OpenAPI document it should satisfy. Matches the operation the way a router would, checks every path, query and header parameter against its declared schema, validates the body against the declared media type, and reports whether the credential the declared security scheme expects is present. You supply the request, so this works against an API nothing external can reach.
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/openapi-parameter-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
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"request": {
"headers": {
"X-Api-Key": "redacted"
},
"method": "GET",
"path": "/orders",
"query": {
"page": "first"
}
},
"specification": {
"components": {
"schemas": {
"Order": {
"properties": {
"id": {
"type": "string"
},
"status": {
"enum": [
"open",
"shipped",
"disputed"
],
"type": "string"
},
"tenant_id": {
"type": "string"
},
"total": {
"type": "number"
}
},
"required": [
"id",
"total",
"tenant_id"
],
"type": "object"
}
},
"securitySchemes": {
"apiKey": {
"in": "query",
"name": "api_key",
"type": "apiKey"
}
}
},
"info": {
"title": "Orders API",
"version": "2.0.0"
},
"openapi": "3.1.0",
"paths": {
"/orders": {
"get": {
"operationId": "listOrdersV2",
"parameters": [
{
"in": "query",
"name": "tenant",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/Order"
},
"type": "array"
}
}
},
"description": "A page of orders"
}
},
"summary": "List orders"
},
"parameters": [
{
"in": "query",
"name": "page",
"schema": {
"minimum": 1,
"type": "integer"
}
}
],
"post": {
"operationId": "createOrder",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Order"
}
}
},
"required": true
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Order"
}
}
},
"description": "Created"
}
},
"summary": "Create an order"
}
},
"/orders/{id}": {
"get": {
"deprecated": true,
"operationId": "getOrder",
"parameters": [
{
"in": "path",
"name": "id",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Order"
}
}
},
"description": "The order"
},
"404": {
"description": "Not found"
}
},
"summary": "Fetch one order"
}
}
},
"security": [
{
"apiKey": []
}
]
}
},
"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": {
"request": {
"additionalProperties": false,
"properties": {
"body": {},
"headers": {
"type": "object"
},
"media_type": {
"maxLength": 128,
"type": "string"
},
"method": {
"enum": [
"get",
"put",
"post",
"delete",
"options",
"head",
"patch",
"trace",
"GET",
"PUT",
"POST",
"DELETE",
"OPTIONS",
"HEAD",
"PATCH",
"TRACE"
],
"type": "string"
},
"path": {
"maxLength": 2048,
"type": "string"
},
"query": {
"type": "object"
}
},
"required": [
"method",
"path"
],
"type": "object"
},
"specification": {
"type": "object"
}
},
"required": [
"specification",
"request"
],
"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"
}