Buyer-controlled x402 recipeInfer and enforce a JSON data contract
Infer a Draft 2020-12 contract from representative records, then validate a future JSON value with bounded, machine-readable error pointers.
2separately authorized steps
$0.035maximum listed total · USDC
eip155:8453 + solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdppayment networks
1$0.025 USDC · separate authorization
JSON Schema generator
Infer a reusable schema from representative structured records.
POSThttps://apiacre.com/v1/data/schema
Input template
{
"content": "$json($representativeRecords)",
"format": "json",
"root_mode": "records"
}
Use this resultPass result.data.schema to the validation step.
2$0.01 USDC · separate authorization
JSON Schema validation
Validate a future JSON value against the inferred contract.
POSThttps://apiacre.com/v1/data/schema-validate
Input template
{
"schema": "$step1.result.data.schema",
"instance": "$futureJsonValue",
"max_errors": 25,
"check_formats": true
}
Use this resultRequire result.data.valid and inspect result.data.errors when false.
You stay in control. Each step is an independent API call. Inspect its HTTP 402 challenge, authorize no more than the displayed price, verify the result, and continue only when the output is suitable. The listed total is not a bundle charge.