# OpenAPI Response Conformance Audit

> OpenAPI Response Conformance Audit is a paid API for AI agents from api.zfinia.com, paid per call via x402, $0.14/call, status unknown (last checked 2026-11-22).

Validates a real API response against the promises made in its OpenAPI specification, checking status codes, headers, and body schema for contract drift.

## Facts

- Endpoint: POST https://api.zfinia.com/x402/v1/openapi-response-conformance-audit?utm_source=zero.xyz
- Price: $0.14/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openapi-response-conformance-audit-52b77b03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gg9O8_RRCu7l0mYandNbQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability openapi-response-conformance-audit-52b77b03 -d '<json body>'
```

Example prompt: Check whether this real API response I just got back — status 200, Content-Type application/json, with this body — actually conforms to what the OpenAPI spec says the GET /users/{id} operation should return.

## When to prefer this

Choose this endpoint when you need to verify that a live or recorded HTTP response actually honors the contract declared in an OpenAPI document — particularly for catching implementation drift, running contract tests in CI, or auditing third-party APIs you depend on. Prefer it over generic JSON Schema validators when you want OpenAPI-aware status-code resolution (exact, range, or default) and header checking in a single call.

## Known failure modes

- Malformed or incomplete OpenAPI specification object causes parsing failure
- Response status outside 100–599 rejected at input validation
- Unknown media type not declared in the spec results in unresolvable schema
- Path or method not found in the specification yields a not-found error
- Body schema references unresolvable $ref components within the provided spec

## How this service works

Audit a real response against what the OpenAPI document promises for that operation. Resolves the declared status exactly, by range such as 2XX, or through default, checks declared response headers are present, and validates the body against the declared schema for its media type. Catches an implementation that has drifted from its own published contract.

## Output

Returns a detailed conformance report indicating whether the response satisfies the OpenAPI contract: whether the status code was matched exactly, by range (e.g. 2XX), or via a default; which declared response headers are absent or mismatched; and any schema violations in the body for the resolved media type. Also surfaces undeclared fields and mismatches between the actual and promised contract.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request": {
   "type": "object",
   "required": [
    "method",
    "path"
   ],
   "properties": {
    "path": {
     "type": "string",
     "maxLength": 2048
    },
    "method": {
     "enum": [
      "get",
      "put",
      "post",
      "delete",
      "options",
      "head",
      "patch",
      "trace",
      "GET",
      "PUT",
      "POST",
      "DELETE",
      "OPTIONS",
      "HEAD",
      "PATCH",
      "TRACE"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "response": {
   "type": "object",
   "required": [
    "status"
   ],
   "properties": {
    "body": {},
    "status": {
     "type": "integer",
     "maximum": 599,
     "minimum": 100
    },
    "headers": {
     "type": "object"
    },
    "media_type": {
     "type": "string",
     "maxLength": 128
    }
   },
   "additionalProperties": false
  },
  "specification": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openapi-response-conformance-audit-52b77b03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zfinia.com](https://www.zero.xyz/host/api.zfinia.com/llms.txt)
