# NetIntel Schema Validate

> NetIntel Schema Validate is a paid API for AI agents from netintel-production-440c.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Validates a JSON object, array, or string against a provided JSON Schema (or simplified field-type map), returning a pass/fail grade, error list, and optional coercion or repair.

## Facts

- Endpoint: POST https://netintel-production-440c.up.railway.app/schema/validate
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-schema-validate-f4dc42ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X2fnnqAgndopiiPm4sFB1

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 netintel-schema-validate-f4dc42ca -d '<json body>'
```

Example prompt: Can you validate this user registration object against my schema — it needs email (required), age (number), and tags (string array) — and if it's invalid, also return a repaired version?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call JSON schema validation service with no signup, API key, or subscription — especially useful for agents that need occasional data quality checks, form validation, or schema-guided repair without committing to a dedicated validation infrastructure. The built-in coercion, LLM-assisted repair, and simplified field-type map syntax (e.g. 'email', 'url', 'string[]') make it faster to use than raw JSON Schema validators when working with messy real-world data.

## Known failure modes

- Invalid or missing 'data' field — returns 400 with input validation rejection, not billed
- Schema too large or data exceeds 64KB limit — rejected with validation error
- Malformed JSON string in 'data' that cannot be repaired — returns validation failure response
- Network or upstream server error — returns error, call is not billed
- Schema uses unsupported format keywords — may produce unexpected validation results

## How this service works

Network intelligence API — 138 endpoints, all pay-per-call via x402 micropayments (USDC on Base or Solana mainnet).

NetIntel is agent fair-trade aligned: transparent per-call pricing in USDC on Base or Solana via x402, no API keys or signup, and automatic no-charge on server errors, upstream failures, and input-validation rejections — failed calls are never billed across NetIntel's network, domain, and data-intelligence endpoints.

## Output

Returns a JSON object containing: valid (boolean), grade (letter A–F), score (0–100), error_count, errors (array of path + message + expected/received), warnings, findings (rule-based deductions), coerced (boolean), repaired (fixed data object or null), and is_repaired_valid (boolean or null). Failed calls due to server errors, upstream failures, or input-validation rejections are not billed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "data",
      "schema"
     ],
     "properties": {
      "data": {
       "type": [
        "object",
        "array",
        "string"
       ],
       "description": "The data to validate: an object, an array, or a JSON string (malformed strings are repaired first). Max 64KB."
      },
      "coerce": {
       "type": "boolean",
       "description": "Default false. Coerce values to the declared types where lossless (\"5\" → 5, \"yes\" → true)."
      },
      "repair": {
       "type": "boolean",
       "description": "Default false. When invalid, also return a repaired copy of the data plus is_repaired_valid. Deterministic first (coercion, declared defaults, enum casing, strict extra-key removal)."
      },
      "schema": {
       "type": "object",
       "description": "JSON Schema ({\"type\":\"object\",\"properties\":{...},\"required\":[...]}) or a simplified field→type map ({\"age\":\"number\",\"email\":\"email\",\"tags\":\"string[]\",\"bio\":\"string?\"}). In the map form a field is required unless suffixed with '?'. Formats: email, url, date, date-time, uuid, ipv4, ipv6, hostname."
      },
      "allow_llm": {
       "type": "boolean",
       "description": "Default true. Gates the LLM repair fallback only — validation itself is always deterministic."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "grade": {
       "type": "string"
      },
      "score": {
       "type": "number"
      },
      "valid": {
       "type": "boolean"
      },
      "errors": {
       "type": "array"
      },
      "coerced": {
       "type": "boolean"
      },
      "findings": {
       "type": "array"
      },
      "repaired": {
       "type": [
        "object",
        "array",
 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "grade": "A",
  "score": 100,
  "valid": false,
  "errors": [
   {
    "path": "$.email",
    "message": "required field is missing",
    "expected": "required",
    "received": "undefined"
   },
   {
    "path": "$.age",
    "message": "expected number, received string",
    "expected": "number",
    "received": "string"
   }
  ],
  "coerced": false,
  "findings": [
   {
    "rule": "data_invalid",
    "detail": "Data does not satisfy the schema (2 errors)",
    "deduction": 0
   }
  ],
  "repaired": null,
  "warnings": [],
  "error_count": 2,
  "is_repaired_valid": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/netintel-schema-validate-f4dc42ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from netintel-production-440c.up.railway.app](https://www.zero.xyz/host/netintel-production-440c.up.railway.app/llms.txt)
