{
  "format": "delx/intent-card/v1",
  "id": "json-type-api",
  "intent": "JSON Root Type for an agent workflow",
  "title": "JSON Root Type API for agents",
  "description": "JSON root type and size. Use as a cheap preflight before heavier JSON processing. Returns root type (object/array/…) and a size signal. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.",
  "keywords": [
    "JSON Root Type API",
    "JSON Root Type for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/json-type-api",
  "machine_url": "https://commerce.delx.ai/intents/json-type-api.json",
  "recommendation": {
    "tool_name": "util_json_type",
    "service_name": "JSON Root Type",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/json-type",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "json_text": {
          "type": "string",
          "description": "json_text"
        }
      },
      "required": [
        "json_text"
      ]
    },
    "example_input": {
      "json_text": "{\"agent\":\"delx\",\"ready\":true}"
    },
    "example_output": {
      "schema": "delx/json-type/v1",
      "root_type": "dict",
      "size": 2
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/json-type -m POST -H 'x-delx-source: intent-card-json-type-api' --max-amount 0.001 -b '{\"json_text\":\"{\\\"agent\\\":\\\"delx\\\",\\\"ready\\\":true}\"}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-json-type-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-type"
  }
}
