# AgentProof JSON Schema Inference

> AgentProof JSON Schema Inference is a paid API for AI agents from agentproof-murex.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Infers a JSON Schema from a sample API response payload submitted by the user

## Facts

- Endpoint: POST https://agentproof-murex.vercel.app/schema/infer
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentproof-murex-vercel-app-7be0ce8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7YMvIYj5fmWCD7i7DI0YR

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 agentproof-murex-vercel-app-7be0ce8c -d '<json body>'
```

Example prompt: Can you infer the JSON Schema for this sample API response I got back from a payments endpoint? Here's the JSON: {"id": "txn_123", "amount": 9.99, "currency": "USD", "status": "completed", "timestamp": "2024-01-15T10:30:00Z"}

## When to prefer this

Use this endpoint when you have a concrete sample API response and want to automatically produce a formal JSON Schema definition without writing it by hand. Ideal for agents automating API contract discovery, building validators, or documenting third-party API responses. Prefer this over manual schema writing or generic LLM schema guessing when you have real response data.

## Known failure modes

- Invalid or malformed JSON input returns an error indicating the payload could not be parsed
- Empty payload or missing body returns a validation error
- Extremely large or deeply nested JSON may time out or return a partial schema
- Non-JSON content types may be rejected

## How this service works

JSON Schema inference for APIs - infer schema from sample responses.

## Output

Returns an inferred JSON Schema document describing the structure, property names, data types, and required fields derived from the submitted sample JSON response payload.

## Example request

```json
{
 "input": "{\"id\": \"user_456\", \"name\": \"John Doe\", \"email\": \"john@example.com\", \"age\": 30, \"active\": true, \"created_at\": \"2024-01-15T10:30:00Z\"}"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "example": {
   "description": "Any JSON value."
  },
  "examples": {
   "type": "array",
   "items": {
    "description": "Any JSON value."
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentproof-murex-vercel-app-7be0ce8c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentproof-murex.vercel.app](https://www.zero.xyz/host/agentproof-murex.vercel.app/llms.txt)
