{
  "name": "Agent Error Fix Receipt",
  "description": "Paid x402 endpoint that diagnoses one AI or developer error log and returns a fix receipt.",
  "version": "1.0.0",
  "type": "x402-paid-api",
  "homepage": "https://agentos-revenue-cloudflare.fuwafuwow.workers.dev",
  "llms_txt": "https://agentos-revenue-cloudflare.fuwafuwow.workers.dev/llms.txt",
  "endpoints": [
    {
      "name": "fix-error",
      "url": "https://agentos-revenue-cloudflare.fuwafuwow.workers.dev/fix-error",
      "method": "POST",
      "description": "Submit one error log and receive root cause, next command, and prevention note.",
      "contentType": "application/json",
      "payment": {
        "protocol": "x402",
        "x402Version": 2,
        "scheme": "exact",
        "network": "eip155:8453",
        "networkName": "Base",
        "asset": "USDC",
        "assetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amount": "10000",
        "price": "0.01 USDC",
        "payTo": "0x4D7d842536De9Eb491AE2300126B3CDdE7B0aDE3",
        "acceptedHeaders": [
          "X-PAYMENT",
          "PAYMENT",
          "PAYMENT-SIGNATURE"
        ]
      },
      "input": {
        "type": "object",
        "required": [
          "error_log"
        ],
        "properties": {
          "error_log": {
            "type": "string",
            "description": "Stacktrace or error log to diagnose."
          }
        },
        "additionalProperties": false,
        "example": {
          "error_log": "Error: Cannot find module 'hono'"
        }
      },
      "output": {
        "type": "object",
        "properties": {
          "root_cause": {
            "type": "string"
          },
          "next_command": {
            "type": "string"
          },
          "prevention_note": {
            "type": "string"
          }
        },
        "example": {
          "root_cause": "A required dependency is missing from the runtime environment.",
          "next_command": "npm install",
          "prevention_note": "Pin dependencies and install from the lockfile during deployment."
        }
      },
      "unauthenticatedBehavior": {
        "status": 402,
        "description": "Returns x402 v2 payment requirements."
      },
      "paidBehavior": {
        "status": 200,
        "description": "Returns an error diagnosis receipt."
      }
    }
  ],
  "discovery": {
    "llmsTxt": "/llms.txt",
    "agentJson": "/agent.json",
    "pricing": "/pricing.json",
    "paymentOptions": "/payment-options.json",
    "wellKnownX402": "/.well-known/x402"
  },
  "operator": {
    "name": "KGNINJA"
  }
}