JSON Contract Check
Validate generated JSON against an explicit supported schema subset with precise error pointers; no guessed repairs.
1 credit per call · $0.005 USDC with x402
Sample input
{
"value": {
"price": "free"
},
"schema": {
"type": "object",
"required": [
"price"
],
"properties": {
"price": {
"type": "number"
}
}
}
}Worked sample output
{
"ok": true,
"mode": "json_contract_check",
"valid": false,
"error_count": 1,
"errors": [
{
"path": "/price",
"code": "type_mismatch",
"expected": [
"number"
],
"actual": "string"
}
],
"errors_truncated": false,
"parsed_from_text": false,
"value_sha256": "772e737f8e397529b1782a3320fed5eab462b2c0d43338b523b15574f9f45eda",
"supported_keywords": [
"type",
"properties",
"required",
"additionalProperties",
"items",
"enum",
"const",
"minimum",
"maximum",
"minLength",
"maxLength",
"minItems",
"maxItems",
"uniqueItems",
"title",
"description",
"$schema"
],
"limitations": [
"Strict supported JSON Schema subset. Unsupported keywords are rejected before charging; values are never coerced or repaired."
]
}Worked example using published sample data only. Own-data execution is paid.
Connect in curl
Set BOUNTY_API_KEY privately after your payment is verified. Change the retry key for each new logical request.
curl 'https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/json-contract-check' \
-H "Authorization: Bearer $BOUNTY_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: workflow-request-001' \
-H 'X-Max-Credits: 1' \
--data '{"value":{"price":"free"},"schema":{"type":"object","required":["price"],"properties":{"price":{"type":"number"}}}}'Connect in n8n
Download the inactive n8n template. Import it, configure the private Header Auth credential, inspect the sample and run it manually. A new execution creates a new billable request; there is no automatic schedule.
Use an HTTP POST to https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/json-contract-check. Send JSON and these headers; store the Bearer token as a private credential.
{
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR_PRIVATE_API_KEY",
"Content-Type": "application/json",
"Idempotency-Key": "UNIQUE_PER_LOGICAL_REQUEST",
"X-Max-Credits": "1"
},
"body": {
"value": {
"price": "free"
},
"schema": {
"type": "object",
"required": [
"price"
],
"properties": {
"price": {
"type": "number"
}
}
}
}
}Reuse a retry key only for the same input. Failed execution returns reserved credits. Full integration and recovery guide · Machine-readable recipe