# ForgeKit JSON Schema Validation

> ForgeKit JSON Schema Validation is a paid API for AI agents from useforgekit.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Validates a JSON object against a provided JSON Schema and returns whether it conforms

## Facts

- Endpoint: POST https://useforgekit.dev/api/v1/json/validate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgekit-json-schema-validation-dc019524
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fIvWSFH_NOp_xFzC-CVN8

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 forgekit-json-schema-validation-dc019524 -d '<json body>'
```

Example prompt: Can you check if this JSON object — {"name":"Alice","age":30} — is valid against this schema: {"type":"object","properties":{"name":{"type":"string"},"age":{"type":"integer"}},"required":["name","age"]}?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use JSON Schema validation call without spinning up your own schema validation library, especially in serverless or agent pipelines where adding dependencies is costly. Ideal when you already have a JSON Schema definition and just need to assert conformance on an object at runtime.

## Known failure modes

- Invalid or malformed JSON Schema provided — returns an error indicating the schema itself could not be parsed
- Missing required fields in the request body (json or schema) — returns a 400-level error
- JSON object or schema exceeds size limits — returns payload too large error
- Network or server error — returns 5xx response

## How this service works

ForgeKit JSON Schema validation

## Output

Returns a structured response indicating whether the JSON object is valid against the provided JSON Schema, along with any validation errors or constraint violations when the object fails.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "object"
  },
  "schema": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgekit-json-schema-validation-dc019524/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from useforgekit.dev](https://www.zero.xyz/host/useforgekit.dev/llms.txt)
