# Oromi JSON Validator

> Oromi JSON Validator is a paid API for AI agents from agents.oromi.co.uk, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Validates a JSON payload against a schema and returns detailed validation errors with paths and keywords

## Facts

- Endpoint: POST https://agents.oromi.co.uk/api/util/validate-json
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/oromi-json-validator-2a060dfb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A5xYX8FmNm122Zn9vCMio

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 oromi-json-validator-2a060dfb -d '<json body>'
```

Example prompt: Can you check if this JSON is valid — it should have a required 'name' field — and tell me exactly what's wrong with it if not: {"age": 30}

## When to prefer this

Choose this endpoint when you need machine-payable, per-call JSON schema validation without setting up your own validator infrastructure. It is particularly useful for AI agents operating in x402 USDC payment environments that need to validate structured data on the fly before forwarding it to downstream APIs.

## Known failure modes

- Malformed request body returns an error response indicating unparseable input
- Invalid or missing schema causes schema-level validation failure
- Network timeout or service unavailability returns HTTP 5xx
- Payment failure via x402 protocol blocks the call before validation occurs

## How this service works

Machine-payable APIs for AI agents, paid per call in USDC via the x402 protocol: UK business data (Companies House), UK property market data (HM Land Registry), website agent-readiness audits, and crypto market context.

## Output

Returns a JSON object with a 'valid' boolean and an 'errors' array. Each error object includes a 'path' (JSON pointer to the failing location), 'keyword' (the JSON Schema keyword that failed, e.g. 'required', 'type'), and a human-readable 'message'. On success, valid is true and errors is empty.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "description": "The data to validate (object or JSON string)"
  },
  "schema": {
   "type": "object",
   "description": "JSON Schema to validate against"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": false,
  "errors": [
   {
    "path": "/",
    "keyword": "required",
    "message": "must have required property 'name'"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/oromi-json-validator-2a060dfb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.oromi.co.uk](https://www.zero.xyz/host/agents.oromi.co.uk/llms.txt)
