{
  "format": "delx/intent-card/v1",
  "id": "json-contract-check-api",
  "intent": "JSON Contract Check for an agent workflow",
  "title": "JSON Contract Check API for agents",
  "description": "Check a JSON payload against a bounded structural contract and return path-level errors. Use it before an autonomous workflow acts on untrusted input, changes an API, retries a request, or evaluates production reliability. Returns bounded machine-readable JSON for $0.002 USDC via x402 on Base. Execution is deterministic, first-party, local-only, stateless, and does not call an upstream provider; structured validation failures are not billed.",
  "keywords": [
    "JSON Contract Check API",
    "JSON Contract Check for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/json-contract-check-api",
  "machine_url": "https://commerce.delx.ai/intents/json-contract-check-api.json",
  "recommendation": {
    "tool_name": "util_json_contract_check",
    "service_name": "Delx JSON Contract Check",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/json-contract-check",
    "price_usdc": "0.002",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "instance": {
          "description": "JSON value to check."
        },
        "contract": {
          "type": "object",
          "description": "Bounded JSON Schema-like contract using type, required, properties, and enum."
        }
      },
      "required": [
        "instance",
        "contract"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "instance": {
        "status": "ready"
      },
      "contract": {
        "type": "object",
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "type": "string"
          }
        }
      }
    },
    "example_output": {
      "schema": "delx/json-contract-check/v1",
      "valid": true,
      "errors": [],
      "error_count": 0,
      "scope": "bounded structural subset: type, required, properties, enum"
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/json-contract-check -m POST -H 'x-delx-source: intent-card-json-contract-check-api' --max-amount 0.002 -b '{\"instance\":{\"status\":\"ready\"},\"contract\":{\"type\":\"object\",\"required\":[\"status\"],\"properties\":{\"status\":{\"type\":\"string\"}}}}'",
      "max_amount_usdc": "0.002"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-json-contract-check-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/json-contract-check"
  }
}
