{"openapi":"3.1.0","info":{"title":"AgentHub","version":"0.3.0","description":"Low-cost x402 utilities for AI agents. Paid endpoints use Base mainnet USDC and return HTTP 402 challenges."},"servers":[{"url":"https://3dprintedcat.com"}],"paths":{"/agentguard-demo.php":{"post":{"summary":"Fixed sample prompt-injection scanner preview","responses":{"200":{"description":"Risk scan sample"}}}},"/agentguard-scan.php":{"post":{"summary":"Paid prompt-injection scanner","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}}}},"responses":{"200":{"description":"Risk scan"},"402":{"description":"x402 payment required"}}}},"/agenthub-pagehost-demo.php":{"post":{"summary":"Fixed sample HTML sanitizer preview","responses":{"200":{"description":"Sanitized sample preview"}}}},"/agenthub-pagehost.php":{"post":{"summary":"Paid 30-day static page host with mandatory AI/scam banner","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"html":{"type":"string"}},"required":["html"]}}}},"responses":{"200":{"description":"Hosted page URL and expiry"},"402":{"description":"x402 payment required"}}}},"/agenthub-link-demo.php":{"post":{"summary":"Fixed sample LinkCheck example","responses":{"200":{"description":"Public URL inspection sample"}}}},"/agenthub-link.php":{"post":{"summary":"Paid public URL safety inspection","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"]}}}},"responses":{"200":{"description":"Public URL inspection"},"402":{"description":"x402 payment required"}}}},"/agenthub-markdown-demo.php":{"post":{"summary":"Fixed sample MarkdownVault validation preview","responses":{"200":{"description":"Markdown validation sample"}}}},"/agenthub-markdown.php":{"post":{"summary":"Paid 30-day Markdown storage up to 100 KB","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"markdown":{"type":"string","maxLength":100000}},"required":["markdown"]}}}},"responses":{"201":{"description":"Markdown retrieval URL and expiry"},"402":{"description":"x402 payment required"}}}},"/agenthub-json-demo.php":{"post":{"summary":"Fixed sample JSON validation and canonicalization preview","responses":{"200":{"description":"JSON validation sample"}}}},"/agenthub-json.php":{"post":{"summary":"Paid JSON validation and canonicalization up to 100 KB","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"json":{"type":"string","maxLength":100000}},"required":["json"]}}}},"responses":{"200":{"description":"Canonical JSON and SHA-256 fingerprint"},"402":{"description":"x402 payment required"}}}},"/agenthub-audit-demo.php":{"post":{"summary":"Free fixed website audit demo","responses":{"200":{"description":"Website audit report for a safe fixed demo site"}}}},"/agenthub-audit.php":{"post":{"summary":"Paid same-origin website crawl and audit report up to 8 pages","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"maxPages":{"type":"integer","minimum":1,"maximum":8}},"required":["url"]}}}},"responses":{"200":{"description":"Website audit report"},"402":{"description":"x402 payment required"}}}},"/agenthub-preflight.php?action=demo":{"post":{"summary":"Fixed sample agent preflight demo","responses":{"200":{"description":"Text, URL, and JSON preflight sample"}}}},"/agenthub-preflight.php":{"post":{"summary":"Paid one-call agent preflight for text, URL, and JSON safety","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","maxLength":50000},"url":{"type":"string","format":"uri"},"json":{"type":"string","maxLength":100000}},"required":[]}}}},"responses":{"200":{"description":"Combined preflight report"},"402":{"description":"x402 payment required"}}}},"/agenthub-stats.php":{"get":{"summary":"Aggregate privacy-preserving funnel counters","responses":{"200":{"description":"Operational usage counters"}}}},"/agenthub-attest.php?action=lookup":{"get":{"summary":"Free lookup of a previously issued attestation by id","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","pattern":"^att_[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Found attestation"},"404":{"description":"Not found"}}}},"/agenthub-attest.php":{"post":{"summary":"Paid signed x402 attestation: freshness proof that the subject endpoint settled a verified call inside the last N minutes","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"type":"string","format":"uri"},"subject":{"type":"string","maxLength":200},"windowMinutes":{"type":"integer","minimum":5,"maximum":1440,"default":60},"note":{"type":"string","maxLength":200}},"required":["endpoint"]}}}},"responses":{"200":{"description":"Attestation object"},"402":{"description":"x402 payment required"}}}},"/agenthub-reputation.php?action=demo":{"post":{"summary":"Free fixed sample reputation report","responses":{"200":{"description":"Sample reputation report"}}}},"/agenthub-reputation.php":{"post":{"summary":"Paid reputation report: 0-100 score with tier, combining first-party settle stats, public directory listings, a live HTTP probe, and a fresh inline attestation","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"type":"string","format":"uri"},"subject":{"type":"string","maxLength":200},"windowDays":{"type":"integer","minimum":1,"maximum":90,"default":30},"includeAttestation":{"type":"boolean","default":true},"attestationWindowMinutes":{"type":"integer","minimum":5,"maximum":1440,"default":60}},"required":["endpoint"]}}}},"responses":{"200":{"description":"Reputation report"},"402":{"description":"x402 payment required"}}}}}}