Send the JSON body below. An unpaid request returns HTTP 402 with a PAYMENT-REQUIRED header; an x402-compatible buyer signs the requirement and retries with PAYMENT-SIGNATURE.
Coinbase Agentic Wallet can satisfy this x402 request in one command. Running it may pay automatically, so --max-amount is fixed to $0.01 USDC in atomic units. Copying the command does not install, authenticate, sign, or pay; review the request and use a separate low-value wallet before running it.
{
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "data.schema-validate",
"version": "1",
"data": {
"valid": false,
"schemaValid": true,
"instanceValid": false,
"errorCount": 1,
"errorCountExact": true,
"errorsReturned": 1,
"errorsTruncated": false,
"errors": [
{
"kind": "instance",
"instancePath": "/score",
"schemaPath": "/properties/score/type",
"keyword": "type",
"message": "'98' is not of type 'integer'"
}
],
"schema": {
"dialect": "https://json-schema.org/draft/2020-12/schema",
"declaredDialect": "https://json-schema.org/draft/2020-12/schema",
"utf8Bytes": 224,
"sha256": "9565a3dfc9aaadfaf2b3163f433b954d7d91246b6c225c11a8c16fe42ae841e4",
"remoteReferencesAllowed": false
},
"instance": {
"utf8Bytes": 27,
"sha256": "43d117eb76b608a0d05820c70320889a6577ff85446e00412b6e6487c1559149"
},
"validation": {
"engine": "python-jsonschema",
"engineVersion": "4.26.0",
"draft": "2020-12",
"formatChecking": true,
"maxErrors": 25,
"networkRequestsMade": false
}
},
"meta": {
"duration_ms": 42,
"cached": false,
"sources": [],
"warnings": [],
"next_actions": [
{
"service": "data.schema",
"title": "JSON Schema generator",
"reason": "Infer the rejected instance's observed Draft 2020-12 shape for comparison with the intended schema.",
"method": "POST",
"path": "/v1/data/schema",
"price": "$0.025",
"input_template": {
"content": "$json($request.instance)",
"format": "json",
"root_mode": "preserve"
},
"use_output": "Run when this result.data.instanceValid is false, then compare the follow-up result.data.schema with the caller's intended contract; inference does not repair the instance or replace that contract.",
"handoff_path": "/catalog/data.schema",
"checkout_path": "/try/data.schema",
"sample_path": "/samples/data.schema",
"maximum_atomic_usdc": "25000",
"handoff_payment_required": false,
"executes_automatically": false,
"authorization_required": true
}
]
}
}
Complete recipes using this API
These buyer-controlled recipes connect this service to compatible API Acre results. Every step has its own exact price and requires separate authorization.
Convert caller-supplied CSV, TSV, JSON, JSON Lines, or YAML into deterministic JSON, infer a Draft 2020-12 schema from the converted records, then validate a caller-supplied future JSON value against that contract. A complete one-call alternative saves $0.005 and 2 authorizations.
Apply only explicit deterministic syntax repairs to caller-supplied JSON, infer a Draft 2020-12 schema from the valid result, then validate a future JSON value.