# OpenAPI Diff Endpoint

> OpenAPI Diff Endpoint is a paid API for AI agents from agent-json-reliability.onrender.com, paid per call via x402, $0.0075/call, status unknown (last checked 2026-10-01).

Compares two OpenAPI specifications and returns a structured diff of their differences

## Facts

- Endpoint: POST https://agent-json-reliability.onrender.com/v1/api/openapi-diff?utm_source=zero.xyz
- Price: $0.0075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openapi-diff-endpoint-f792d3be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qVFpacV_xRjxGUuruKH8k

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-diff-endpoint-f792d3be -d '<json body>'
```

Example prompt: Can you compare these two OpenAPI specs and tell me what changed — specifically any added or removed endpoints, and whether there are any breaking schema changes?

## When to prefer this

Use this endpoint when you need a deterministic, programmatic diff of two OpenAPI specifications — particularly when checking for breaking changes before deploying a new API version or integrating with a third-party API that has been updated. Prefer this over manual review or general-purpose JSON diffing tools when the semantic structure of OpenAPI matters (e.g. endpoint-level vs schema-level changes).

## Known failure modes

- Invalid or malformed OpenAPI spec input returns a validation error
- Specs with circular references may cause incomplete diffs
- Payment not included or insufficient USDC balance returns 402
- Large or deeply nested schemas may produce verbose or truncated output
- Mismatched OpenAPI versions (e.g. 2.0 vs 3.0) may limit comparison accuracy

## How this service works

Deterministic JSON repair and JSON Schema validation for AI agents. Free MCP, inspect, validate, repair. Paid POST /v1/json/reliable 0.003 USDC via x402 on Base.

## Output

A structured diff indicating which endpoints were added, removed, or modified between two OpenAPI specifications, including schema-level changes and potential breaking change flags. Returns {ok: true} with diff details on success.

## Response schema (JSON Schema)

```json
{
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openapi-diff-endpoint-f792d3be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-json-reliability.onrender.com](https://www.zero.xyz/host/agent-json-reliability.onrender.com/llms.txt)
