{
  "openapi": "3.1.0",
  "info": {
    "title": "Claim Check by Agentropolis",
    "version": "0.1.1",
    "summary": "Claim → supports / contradicts / unclear with cited, machine-verified quotes.",
    "description": "Claim Check: send one factual claim, get supports / contradicts / unclear with a 0-1 confidence, a short explanation, cited source URLs and verbatim quotes that are machine-checked against the source text (no verified quote → unclear). Evidence from Wikipedia and GDELT news (recent 15-minute export files; DOC API when it answers). $0.02 standard, $0.08 deep (more sources, full news articles, larger judge model). Advisory, not a ruling. $0.02 USDC per call on Base mainnet.",
    "contact": {
      "name": "Agentropolis",
      "url": "https://agentropolis.io",
      "email": "hello@agentropolis.io"
    },
    "x-guidance": "POST /api/claim with {claim, context?}. Branch on verdict; use confidence (0-1) as a threshold; evidence[].quote_verified=true quotes were found verbatim in the cited source. unclear = sources did not settle it (not \"false\"). Use /api/claim/deep for contested or recent claims."
  },
  "servers": [
    {
      "url": "https://seenly-kit-finder.vercel.app"
    }
  ],
  "paths": {
    "/api/claim": {
      "post": {
        "operationId": "checkClaim",
        "summary": "Check a claim against Wikipedia + news ($0.02)",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.02"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "rails": [
            {
              "protocol": "x402",
              "version": 2,
              "scheme": "exact",
              "network": "eip155:8453",
              "networkName": "Base mainnet",
              "asset": "USDC",
              "assetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "amount": "20000",
              "priceUsd": "0.02",
              "payTo": "0xeE6239F3E17bEBe5e89F21F29D74D68CAa0d78CE",
              "facilitator": "Coinbase CDP (gas sponsored; payer needs no ETH)",
              "header": "PAYMENT-SIGNATURE"
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClaimRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict with cited evidence",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimResult"
                }
              }
            }
          },
          "402": {
            "description": "x402 payment required"
          },
          "422": {
            "description": "Invalid request (not charged)"
          },
          "503": {
            "description": "Model or sources unavailable (not charged)"
          }
        }
      }
    },
    "/api/claim/deep": {
      "post": {
        "operationId": "checkClaimDeep",
        "summary": "Deep check: more sources, full news articles, larger judge ($0.08)",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.08"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "rails": [
            {
              "protocol": "x402",
              "version": 2,
              "scheme": "exact",
              "network": "eip155:8453",
              "networkName": "Base mainnet",
              "asset": "USDC",
              "assetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "amount": "80000",
              "priceUsd": "0.08",
              "payTo": "0xeE6239F3E17bEBe5e89F21F29D74D68CAa0d78CE",
              "facilitator": "Coinbase CDP (gas sponsored; payer needs no ETH)",
              "header": "PAYMENT-SIGNATURE"
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClaimRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict with cited evidence",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimResult"
                }
              }
            }
          },
          "402": {
            "description": "x402 payment required"
          },
          "422": {
            "description": "Invalid request (not charged)"
          },
          "503": {
            "description": "Model or sources unavailable (not charged)"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ClaimRequest": {
        "type": "object",
        "properties": {
          "claim": {
            "type": "string",
            "minLength": 8,
            "maxLength": 600
          },
          "context": {
            "type": "string",
            "maxLength": 1500
          },
          "requestKey": {
            "type": "string",
            "maxLength": 128
          }
        },
        "required": [
          "claim"
        ]
      },
      "ClaimResult": {
        "type": "object",
        "properties": {
          "claim": {
            "type": "string"
          },
          "normalized_claim": {
            "type": "string"
          },
          "tier": {
            "type": "string",
            "enum": [
              "standard",
              "deep"
            ]
          },
          "verdict": {
            "type": "string",
            "enum": [
              "supports",
              "contradicts",
              "unclear"
            ]
          },
          "confidence": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "summary": {
            "type": "string"
          },
          "evidence": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "stance": {
                  "type": "string",
                  "enum": [
                    "supports",
                    "contradicts",
                    "context"
                  ]
                },
                "quote": {
                  "type": "string"
                },
                "quote_verified": {
                  "type": "boolean"
                }
              }
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "wikipedia",
                    "news"
                  ]
                },
                "domain": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "date": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          "caveats": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "searched": {
            "type": "object"
          },
          "attribution": {
            "type": "string"
          },
          "cost": {
            "type": "object"
          },
          "check_version": {
            "type": "string"
          }
        },
        "required": [
          "verdict",
          "confidence",
          "summary",
          "evidence",
          "sources"
        ]
      }
    }
  }
}