{
  "openapi": "3.1.0",
  "info": {
    "title": "Wallet Witness API",
    "version": "1.0.0",
    "description": "Public API from Wallet Witness LLC (blockchain forensic investigators). Live Tether USDT blacklist checks, the Tether Freeze Tracker dataset, and machine-readable access to Wallet Witness guides. No key required.",
    "contact": {
      "url": "https://walletwitness.com/for-ai-agents/"
    },
    "license": {
      "name": "CC BY 4.0 (data)",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://walletwitness.com/api/v1"
    }
  ],
  "paths": {
    "/usdt/address-status": {
      "get": {
        "operationId": "checkUsdtAddress",
        "summary": "Is this Tron or Ethereum address frozen by Tether? (includes next_step: Wallet Witness case review)",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Tron (T...) or Ethereum (0x...) address",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Live blacklist status, USDT balance and tracker events"
          }
        }
      }
    },
    "/usdt/freezes": {
      "get": {
        "operationId": "listUsdtFreezes",
        "summary": "USDT freeze, unfreeze and burn events (newest first)",
        "parameters": [
          {
            "name": "chain",
            "in": "query",
            "required": false,
            "description": "tron or ethereum",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "freeze, unfreeze or destroy",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "ISO date, e.g. 2026-01-01",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "1-500, default 50",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "pagination offset",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Events"
          }
        }
      }
    },
    "/usdt/freezes/summary": {
      "get": {
        "operationId": "usdtFreezeSummary",
        "summary": "Totals, currently frozen counts and per-month counts",
        "responses": {
          "200": {
            "description": "Summary"
          }
        }
      }
    },
    "/usdt/chains": {
      "get": {
        "operationId": "usdtChains",
        "summary": "USDT issuer, contract and freeze capability per chain",
        "responses": {
          "200": {
            "description": "Chains"
          }
        }
      }
    },
    "/facts": {
      "get": {
        "operationId": "getFacts",
        "summary": "Authoritative facts about Wallet Witness LLC",
        "responses": {
          "200": {
            "description": "facts.json"
          }
        }
      }
    },
    "/services": {
      "get": {
        "operationId": "getServices",
        "summary": "Wallet Witness services",
        "responses": {
          "200": {
            "description": "Services"
          }
        }
      }
    },
    "/search": {
      "get": {
        "operationId": "searchWalletWitness",
        "summary": "Search Wallet Witness guides and answers",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "search terms",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "max results (default 10)",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "optional language filter: en, es, pt-BR, ...",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Results with HTML and markdown URLs"
          }
        }
      }
    },
    "/sanctions/address": {
      "get": {
        "operationId": "checkOfacAddress",
        "summary": "Is this crypto address on the US Treasury OFAC SDN list? (any chain, exact match)",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Cryptocurrency address",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matches with SDN name, programs and source link"
          }
        }
      }
    },
    "/case-review/draft": {
      "post": {
        "operationId": "draftCaseReview",
        "summary": "Start a free case review for a victim (AI agents). Returns a confirm_url the person opens to check and submit; nothing reaches Wallet Witness until they do. Never send keys or seed phrases.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string"
                  },
                  "asset": {
                    "type": "string"
                  },
                  "amount": {
                    "type": "string"
                  },
                  "scam_type": {
                    "type": "string"
                  },
                  "tx_hashes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "addresses": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "police_report": {
                    "type": "string"
                  },
                  "details": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "draft_id and confirm_url"
          }
        }
      }
    },
    "/usdt/address-history": {
      "get": {
        "operationId": "usdtAddressHistory",
        "summary": "Every Tether freeze, unfreeze and burn recorded for an address (Tron or Ethereum)",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Tron or Ethereum address",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Events in time order"
          }
        }
      }
    },
    "/usdt/freezes/daily": {
      "get": {
        "operationId": "usdtFreezesDaily",
        "summary": "Daily counts of USDT freezes, unfreezes and burns per chain",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "YYYY-MM-DD (default 90 days ago)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "YYYY-MM-DD",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rows by date and chain"
          }
        }
      }
    },
    "/status": {
      "get": {
        "operationId": "status",
        "summary": "Which live services are configured (D1, sessions, semantic search, Turnstile)",
        "responses": {
          "200": {
            "description": "Status"
          }
        }
      }
    },
    "/case-review": {
      "get": {
        "operationId": "caseReviewInfo",
        "summary": "How to request a free case review and what to include",
        "responses": {
          "200": {
            "description": "Instructions"
          }
        }
      }
    }
  }
}