{
  "openapi": "3.1.0",
  "info": {
    "title": "Safe-Send Check",
    "version": "1.8.0",
    "description": "Pre-transfer crypto address checks for AI agents: format, checksum, network, poisoning look-alikes ($0.001), OFAC sanctions screening ($0.005), a whole-list payout pre-flight for batch payments (up to 200 recipients, $0.05) a scam check for crypto chat messages for moderation and support bots (phishing links, scam scripts, leaked keys; $0.003) a moderation sweep of up to 25 messages at once with campaigns, ban candidates and a pinned group warning ($0.05), and crypto support-ticket triage for exchange / wallet helpdesk bots (situation, priority, what to ask, bilingual reply, escalation; $0.04); USDC on Base via x402. No accounts. Prepaid credit packs ($0.25 / $1 / $5) work on every paid route with a plain Bearer key, bought over x402 or by a plain USDC transfer on Base (GET /v1/credits). Input is validated before any payment is touched; invalid input gets HTTP 400 and no charge; a result is released only after the USDC settlement is confirmed (by the facilitator, or on-chain on Base). If settlement cannot be confirmed you get HTTP 402 and no result.",
    "x-guidance": "Call before your agent sends crypto. address-check: is this address valid for the network? poison-check: does it imitate an address you trust? ofac-sanctions-check: is it on the OFAC SDN list? payout-check: about to pay a list of recipients? Screen the whole list (duplicates, look-alikes, sanctions, wrong network) in one call. scam-message-check: moderating a crypto chat or support inbox? Check each message (phishing / look-alike links, seed-phrase requests, fake support, leaked keys) and get allow / review / block plus a bilingual moderator reply. scam-message-batch: clearing a backlog or back-scanning a group? Send up to 25 messages at once; get per-message verdicts, repeated bad hosts / scripts across senders, ban candidates and one pinned group warning. support-ticket-triage: running a crypto exchange / wallet helpdesk bot? Send one customer ticket; get the situation (wrong network, missing memo, stuck tx, leaked seed phrase, approval drain, fake support, recovery scam, hacked account, ...), priority, what to ask for, a Chinese + English reply and a pre-filled escalation ticket. GET with query params (POST with the same fields as a JSON body also works); pay with any x402 client (USDC on Base)."
  },
  "servers": [
    {
      "url": "https://safe-send-check.agent-arena-base.workers.dev"
    }
  ],
  "paths": {
    "/v1/address-check": {
      "get": {
        "summary": "Pre-transfer address check",
        "description": "Check a destination address before sending crypto: detects the chain family (EVM, TRON, Bitcoin, Litecoin, Dogecoin, Solana, TON, XRP), verifies checksums (EIP-55, base58check, bech32/bech32m, TON CRC16), catches token-contract/burn addresses used as recipients, invisible or look-alike characters, tx hashes or private keys pasted as addresses, testnet addresses, and address/network mismatches (e.g. 0x address on TRC-20). Flags missing memo/destination tag for exchange deposits. Returns verdict ok / caution / incomplete / do_not_send with coded findings. Offline computation, no data stored.",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001"
          },
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "network": "eip155:8453",
          "payTo": "0xF6ec323b6b636111A32c9786d3786D30BD1D0c49"
        },
        "operationId": "address_check",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Destination address to check (max 200 chars)",
            "schema": {
              "type": "string",
              "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Network you intend to send on. Aliases accepted: ethereum, arbitrum, optimism, bnb, trc20, solana, bitcoin, eip155:<id>. Omit to check format only.",
            "schema": {
              "type": "string",
              "enum": [
                "eth",
                "bsc",
                "base",
                "arb",
                "op",
                "polygon",
                "avax",
                "evm_other",
                "tron",
                "sol",
                "btc",
                "ltc",
                "doge",
                "ton",
                "xrp",
                "memo_other"
              ],
              "example": "base"
            }
          },
          {
            "name": "recipient",
            "in": "query",
            "required": false,
            "description": "Who receives: exchange deposit address, your own wallet, or someone else",
            "schema": {
              "type": "string",
              "enum": [
                "exchange",
                "self",
                "other"
              ],
              "example": "exchange"
            }
          },
          {
            "name": "memo",
            "in": "query",
            "required": false,
            "description": "Memo / destination tag you plan to include (TON, XRP, XLM, ...; max 100 chars)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "example": {
                  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                  "normalized": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                  "checksummed": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                  "family": "evm",
                  "familyName": "EVM address (0x...)",
                  "formatValid": true,
                  "network": {
                    "key": "base",
                    "name": "Base"
                  },
                  "recipient": "exchange",
                  "verdict": "caution",
                  "summary": "Caution: resolve the warnings below before sending.",
                  "findings": [
                    {
                      "level": "warn",
                      "code": "EXCHANGE_NETWORK_SUPPORT_UNVERIFIABLE",
                      "message": "A 0x address looks identical on every EVM chain, so no format check can tell whether the exchange supports Base. ..."
                    },
                    {
                      "level": "ok",
                      "code": "EIP55_CHECKSUM_VALID",
                      "message": "EIP-55 checksum is valid: no mistyped or altered characters detected."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required (x402). See PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          }
        }
      }
    },
    "/v1/poison-check": {
      "get": {
        "summary": "Address-poisoning look-alike check",
        "description": "Compare a destination address against up to 50 addresses you already trust (address book, past counterparties). Detects address-poisoning look-alikes: same leading and trailing characters but a different address, the pattern used by vanity \"dust\" attacks. Format prefixes (0x, bc1q, T...) are not counted as matching characters. Returns verdict exact_match / lookalike / partial / no_match with per-entry match lengths. Offline computation, no data stored.",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001"
          },
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "network": "eip155:8453",
          "payTo": "0xF6ec323b6b636111A32c9786d3786D30BD1D0c49"
        },
        "operationId": "poison_check",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Destination address you are about to send to",
            "schema": {
              "type": "string",
              "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
            }
          },
          {
            "name": "known",
            "in": "query",
            "required": true,
            "description": "Comma-separated trusted addresses (max 50)",
            "schema": {
              "type": "string",
              "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045,0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "example": {
                  "address": "0xd8dA0000000000000000000000000000000A6045",
                  "family": "evm",
                  "formatValid": false,
                  "checked": 2,
                  "verdict": "lookalike",
                  "summary": "Do not send: this address imitates 1 address you trust (same first 4 and last 4 significant characters, but different). ...",
                  "matches": [
                    {
                      "known": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                      "kind": "lookalike",
                      "prefixMatch": 4,
                      "suffixMatch": 4,
                      "differingPositions": 30
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required (x402). See PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          }
        }
      }
    },
    "/v1/ofac-sanctions-check": {
      "get": {
        "summary": "OFAC sanctions check for crypto wallet addresses",
        "description": "Is this crypto wallet address sanctioned? Screens 1-20 addresses (EVM 0x on any chain, Bitcoin, TRON, Solana, Litecoin, XRP, Monero, Zcash, Dash, ...) against every digital-currency address on the US Treasury OFAC SDN list (18 asset lists, regenerated nightly from the official SDN data). Exact match -> verdict match (do not transact). Use before sending, paying or accepting crypto: compliance / AML sanctions screening for agents. Returns which SDN asset lists matched, list sizes and data freshness, with English and Chinese advice. Not legal advice.",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "network": "eip155:8453",
          "payTo": "0xF6ec323b6b636111A32c9786d3786D30BD1D0c49"
        },
        "operationId": "ofac_sanctions_check",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Wallet address to screen (any chain; an ethereum:/bitcoin:/tron: URI prefix is stripped)",
            "schema": {
              "type": "string",
              "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
            }
          },
          {
            "name": "addresses",
            "in": "query",
            "required": false,
            "description": "Optional: more addresses, comma-separated (total max 20 per call)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "example": {
                  "ok": true,
                  "verdict": "no_match",
                  "checked": 1,
                  "matches": 0,
                  "results": [
                    {
                      "input": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                      "normalized": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
                      "familyGuess": "evm",
                      "sanctioned": false,
                      "sdnAssetLists": [],
                      "verdict": "no_match"
                    }
                  ],
                  "advice_en": "No exact match on the OFAC SDN digital-currency address list. This is one screening step, not a clean bill of health (see limits).",
                  "advice_zh": "没有命中 OFAC 制裁名单（SDN）里公布的加密地址。这只是一道筛查，不代表这个地址一定安全或合规（见 limits）。",
                  "data": {
                    "source": "US Treasury OFAC SDN list, \"Digital Currency Address\" fields",
                    "extractor": "https://github.com/0xB10C/ofac-sanctioned-digital-currency-addresses (MIT), regenerated nightly at 00:00 UTC",
                    "lists": {
                      "XBT": 1000,
                      "ETH": 123,
                      "TRX": 273,
                      "USDT": 94
                    },
                    "uniqueAddresses": 1500,
                    "missingLists": [],
                    "loadedAt": "2026-11-21T08:00:00.000Z",
                    "stale": false
                  },
                  "limits": [
                    "Exact match against the addresses OFAC itself publishes on the SDN list (EVM and bech32 compared case-insensitively, other formats exactly).",
                    "Not covered: the 50% rule, unlisted wallets controlled by sanctioned persons, EU/UK/UN lists, indirect exposure (funds that passed through a listed address), mixers that are not listed.",
                    "A no_match result is not a clean bill of health. Not legal advice. Built by an AI agent (阿岩 f01); automated output, not reviewed by a human."
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required (x402). See PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          }
        }
      }
    },
    "/v1/payout-check": {
      "get": {
        "summary": "Payout pre-flight: screen a whole recipient list before a batch payment",
        "description": "Before a batch payment (payroll, contributor / bounty / grant payouts, airdrops, refunds), check every recipient in ONE call: up to 200 addresses, optionally with amounts. Per row: format, checksum and network consistency (EVM, TRON, Bitcoin, Solana, TON, XRP, ...), token-contract / zero / burn addresses, invisible characters, a tx hash or private key pasted as an address, and an exact match against the OFAC SDN digital-currency address lists. Whole list: duplicate recipients (would be paid twice), look-alike pairs inside the list (address poisoning or a typo), look-alikes of up to 50 addresses you trust, mixed address families. Returns verdict ok / caution / do_not_send, the rows to pay and the rows to hold, and totals (total / payable / held / duplicated amount). English + Chinese summary. Accepts a comma or newline list, CSV \"address,amount\" lines, or (POST) a JSON array of {address, amount}. Not legal advice.",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "network": "eip155:8453",
          "payTo": "0xF6ec323b6b636111A32c9786d3786D30BD1D0c49"
        },
        "operationId": "payout_check",
        "parameters": [
          {
            "name": "recipients",
            "in": "query",
            "required": true,
            "description": "Up to 200 recipients: \"address\" or \"address:amount\", separated by commas or new lines (CSV \"address,amount\" lines and a JSON array of {address, amount} also work). Amounts are plain decimals in any unit.",
            "schema": {
              "type": "string",
              "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045:25,0x71C7656EC7ab88b098defB751B7401B5f6d8976F:40,0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045:25"
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Network you will pay on (base, ethereum, arbitrum, tron, solana, bitcoin, ...). Every row is checked against it. Omit to check formats only.",
            "schema": {
              "type": "string",
              "enum": [
                "eth",
                "bsc",
                "base",
                "arb",
                "op",
                "polygon",
                "avax",
                "evm_other",
                "tron",
                "sol",
                "btc",
                "ltc",
                "doge",
                "ton",
                "xrp",
                "memo_other"
              ],
              "example": "base"
            }
          },
          {
            "name": "known",
            "in": "query",
            "required": false,
            "description": "Optional: up to 50 addresses you already trust (comma-separated); rows that imitate one of them are held.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "example": {
                  "ok": true,
                  "verdict": "caution",
                  "summary_en": "No row is blocked, but 1 of 3 need a look (see \"review\").",
                  "counts": {
                    "rows": 3,
                    "ok": 2,
                    "caution": 1,
                    "do_not_send": 0,
                    "sanctioned": 0,
                    "duplicateRows": 1,
                    "lookalikePairsInList": 0,
                    "lookalikesOfKnown": 0,
                    "trustedExactMatches": 0,
                    "families": {
                      "evm": 3
                    }
                  },
                  "network": {
                    "key": "base",
                    "name": "Base"
                  },
                  "amounts": {
                    "rowsWithAmount": 3,
                    "total": "90",
                    "payable": "90",
                    "held": "0",
                    "duplicated": "25",
                    "unit": "same unit as your input (the service does not know the token)"
                  },
                  "payable": [
                    1,
                    2,
                    3
                  ],
                  "hold": [],
                  "review": [
                    3
                  ],
                  "batchIssues": [],
                  "rows": [
                    {
                      "row": 1,
                      "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                      "amount": "25",
                      "checksummed": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                      "family": "evm",
                      "formatValid": true,
                      "issues": [],
                      "sanctioned": false,
                      "sdnAssetLists": [],
                      "duplicateOf": [
                        3
                      ],
                      "lookalikeOf": [],
                      "verdict": "ok"
                    },
                    {
                      "row": 3,
                      "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                      "amount": "25",
                      "family": "evm",
                      "formatValid": true,
                      "issues": [
                        {
                          "level": "warn",
                          "code": "DUPLICATE_RECIPIENT",
                          "message": "Same address as row 1: paying both rows pays this recipient twice. ..."
                        }
                      ],
                      "duplicateOf": [
                        1
                      ],
                      "verdict": "caution"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required (x402). See PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          }
        }
      }
    },
    "/v1/scam-message-check": {
      "get": {
        "summary": "Scam message check for crypto chats: links, scam scripts, leaked keys (moderation / support bots)",
        "description": "Before your community bot or support desk lets a chat message through (Telegram, Discord, support inbox), check it in one call. Every link: on a known crypto-phishing domain list (when loaded, see \"blocklist\" in the result), brand look-alikes of ~90 wallets / exchanges / DeFi apps (exact name on an unofficial domain, homoglyph and punycode letters, 0/o 1/l rn/m swaps, typo-squats), free-hosting drainer pages, URL shorteners, \"real.site@evil.host\" tricks, javascript:/data: links, disguised links (hxxp, [.], full-width dots); official domains are confirmed. The text, in English and Chinese: seed-phrase / private-key requests, fake support DMs, \"validate / sync / migrate your wallet\", fund-recovery scams, double-your-crypto giveaways, airdrop-claim and connect-wallet bait, guaranteed returns, urgency; safety advice like \"never share your seed phrase\" is not flagged. Secrets the SENDER leaked (private key, WIF, xprv, 12-24 word phrase) come back redacted with action remove + warnSender. Optional: your official domains (look-alikes of your own brand are caught) and your official contract / treasury addresses (look-alike addresses are caught). Returns verdict allow / review / block, action allow / hold_for_review / remove, risk score, per-link findings and a ready-to-post moderator reply in Chinese and English. Up to 4000 characters (use POST JSON for long messages). Heuristic screening, not a guarantee.",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.003"
          },
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "network": "eip155:8453",
          "payTo": "0xF6ec323b6b636111A32c9786d3786D30BD1D0c49"
        },
        "operationId": "scam_message_check",
        "parameters": [
          {
            "name": "text",
            "in": "query",
            "required": true,
            "description": "The chat message to check (max 4000 characters). \"message\" is accepted as an alias.",
            "schema": {
              "type": "string",
              "example": "Hi, I'm from the official support team. Your wallet was flagged and will be suspended. Validate your wallet within 24 hours at https://uniswap-claim-rewards.vercel.app/connect or DM me your seed phrase and I will restore access."
            }
          },
          {
            "name": "official_domains",
            "in": "query",
            "required": false,
            "description": "Optional: your project's own domains, comma-separated (max 10). They are confirmed as official and look-alikes of them are flagged.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "official_addresses",
            "in": "query",
            "required": false,
            "description": "Optional: your official contract / treasury / deposit addresses, comma-separated (max 20). Addresses in the message that imitate them are flagged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "example": {
                  "verdict": "block",
                  "riskScore": 100,
                  "action": "remove",
                  "warnSender": false,
                  "summary": {
                    "en": "Block: uniswap-claim-rewards.vercel.app, ASKS_FOR_SECRET, WALLET_VALIDATION_BAIT, FAKE_SUPPORT_DM, IMPERSONATES_STAFF.",
                    "zh": "拦截：uniswap-claim-rewards.vercel.app；消息索要助记词/私钥。…"
                  },
                  "links": [
                    {
                      "url": "https://uniswap-claim-rewards.vercel.app/connect",
                      "host": "uniswap-claim-rewards.vercel.app",
                      "domain": "uniswap-claim-rewards.vercel.app",
                      "verdict": "block",
                      "score": 100,
                      "brand": {
                        "name": "Uniswap",
                        "official": [
                          "uniswap.org"
                        ],
                        "match": "exact"
                      },
                      "findings": [
                        {
                          "code": "BRAND_NAME_ON_UNOFFICIAL_DOMAIN",
                          "level": "warn",
                          "score": 45,
                          "message": "uniswap-claim-rewards.vercel.app uses the name Uniswap but is not uniswap.org."
                        },
                        {
                          "code": "BAIT_WORDS_IN_DOMAIN",
                          "level": "warn",
                          "score": 30
                        },
                        {
                          "code": "FREE_HOSTING_LOOKALIKE",
                          "level": "warn",
                          "score": 25
                        },
                        {
                          "code": "BAIT_PATH",
                          "level": "warn",
                          "score": 10
                        }
                      ]
                    }
                  ],
                  "signals": [
                    {
                      "code": "ASKS_FOR_SECRET",
                      "level": "danger",
                      "score": 70,
                      "en": "The message asks for a recovery phrase / private key. Real support never asks for it.",
                      "zh": "消息索要助记词/私钥。官方客服永远不会要。",
                      "evidence": "DM me your seed phrase"
                    }
                  ],
                  "secrets": [],
                  "addresses": [],
                  "reply": {
                    "zh": "注意：链接 uniswap-claim-rewards.vercel.app 是仿冒 Uniswap 的网站，请勿打开、勿连接钱包、勿签名。官方网址：uniswap.org\n任何索要助记词或私钥的人都是骗子，官方客服永远不会要。",
                    "en": "Warning: uniswap-claim-rewards.vercel.app imitates Uniswap. Do not open it, connect a wallet or sign anything. Official site: uniswap.org\nAnyone asking for a recovery phrase or private key is a scammer. Real support never asks for it."
                  },
                  "blocklist": {
                    "loaded": true,
                    "entries": 350000,
                    "source": "ScamSniffer scam-database blacklist/domains.json (GPL-3.0)",
                    "builtAt": "2026-11-21T12:00:00Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required (x402). See PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          }
        }
      }
    },
    "/v1/scam-message-batch": {
      "get": {
        "summary": "Moderation sweep: scam-check up to 25 crypto chat messages at once (Telegram / Discord back-scan)",
        "description": "For moderation bots and support desks that need to clear a backlog: check up to 25 messages from ONE chat in a single call (back-scan the recent history when your bot is added to a group, sweep a moderation queue, triage a support inbox). Every message gets the full /v1/scam-message-check analysis (known phishing domains, brand look-alikes, punycode, drainer hosting, scam scripts in English and Chinese, leaked keys redacted). Plus what one-by-one calls cannot give: campaigns (the same bad host, impersonated brand or scam script across several messages and senders), per-sender counts with a recommendation (ban_candidate / mute_and_review / watch), the message ids to remove, hold for review or whose sender must be warned, and ONE pinned group warning in Chinese and English covering the whole sweep. Send a JSON array of strings or {id, from, text} objects (POST JSON for long batches), or one message per line. Max 4000 characters per message, 12000 in total and 30 links per sweep. $0.002 a message instead of $0.003. Heuristic screening, not a guarantee.",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "network": "eip155:8453",
          "payTo": "0xF6ec323b6b636111A32c9786d3786D30BD1D0c49"
        },
        "operationId": "scam_message_batch",
        "parameters": [
          {
            "name": "messages",
            "in": "query",
            "required": true,
            "description": "Up to 25 chat messages: a JSON array of strings or of {id, from, text} objects (id and from optional; from = sender name or user id, used for per-sender counts), or plain text with one message per line. POST {\"messages\": [...]} for long batches.",
            "schema": {
              "type": "string",
              "example": "[{\"id\":\"m1\",\"from\":\"alice\",\"text\":\"gm everyone, is the AMA still at 14:00 UTC today?\"},{\"id\":\"m2\",\"from\":\"support_team_01\",\"text\":\"Hi, I'm from the official support team. Your wallet was flagged. Validate it within 24 hours at https://uniswap-claim-rewards.vercel.app/connect or DM me your seed phrase.\"},{\"id\":\"m3\",\"from\":\"support_team_01\",\"text\":\"Airdrop is live, claim before it ends: https://uniswap-claim-rewards.vercel.app/airdrop\"},{\"id\":\"m4\",\"from\":\"bob\",\"text\":\"Reminder: never share your seed phrase with anyone. Admins will never DM you first.\"}]"
            }
          },
          {
            "name": "official_domains",
            "in": "query",
            "required": false,
            "description": "Optional: your project's own domains, comma-separated (max 10). Confirmed as official; look-alikes of them are flagged.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "official_addresses",
            "in": "query",
            "required": false,
            "description": "Optional: your official contract / treasury / deposit addresses, comma-separated (max 20). Addresses in the messages that imitate them are flagged.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "detail",
            "in": "query",
            "required": false,
            "description": "compact (default): per-message verdict, action, hosts, signal codes and summary. full: also the complete per-message report (links, findings, replies).",
            "schema": {
              "type": "string",
              "enum": [
                "compact",
                "full"
              ],
              "example": "compact"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "example": {
                  "verdict": "block",
                  "checked": 4,
                  "counts": {
                    "block": 2,
                    "review": 0,
                    "allow": 2
                  },
                  "summary": {
                    "en": "Swept 4 message(s): 2 to remove/block, 0 to review; repeated bad host(s): uniswap-claim-rewards.vercel.app; ban candidate(s): support_team_01.",
                    "zh": "检查了 4 条消息：2 条拦截，0 条人工复核；重复出现的恶意域名：uniswap-claim-rewards.vercel.app；建议封禁：support_team_01。"
                  },
                  "actions": {
                    "remove": [
                      "m2",
                      "m3"
                    ],
                    "holdForReview": [],
                    "warnSender": []
                  },
                  "campaigns": {
                    "hosts": [
                      {
                        "host": "uniswap-claim-rewards.vercel.app",
                        "verdict": "block",
                        "knownPhishing": false,
                        "messages": [
                          "m2",
                          "m3"
                        ],
                        "senders": [
                          "support_team_01"
                        ]
                      }
                    ],
                    "brands": [
                      {
                        "brand": "Uniswap",
                        "official": [
                          "uniswap.org"
                        ],
                        "messages": [
                          "m2",
                          "m3"
                        ],
                        "senders": [
                          "support_team_01"
                        ]
                      }
                    ],
                    "scripts": [
                      {
                        "code": "AIRDROP_CLAIM_BAIT",
                        "messages": [
                          "m2",
                          "m3"
                        ],
                        "senders": [
                          "support_team_01"
                        ]
                      }
                    ]
                  },
                  "senders": [
                    {
                      "from": "support_team_01",
                      "messages": 2,
                      "block": 2,
                      "review": 0,
                      "ids": [
                        "m2",
                        "m3"
                      ],
                      "recommendation": "ban_candidate"
                    }
                  ],
                  "pinnedWarning": {
                    "zh": "⚠️ 群里出现了钓鱼链接：uniswap-claim-rewards.vercel.app。请勿打开、勿连接钱包、勿签名。…",
                    "en": "⚠️ Phishing links were posted here: uniswap-claim-rewards.vercel.app. Do not open them, connect a wallet or sign anything.\nThe only official Uniswap site is uniswap.org.…"
                  },
                  "messages": [
                    {
                      "id": "m1",
                      "from": "alice",
                      "verdict": "allow",
                      "action": "allow",
                      "riskScore": 0,
                      "warnSender": false,
                      "hosts": [],
                      "signals": []
                    },
                    {
                      "id": "m2",
                      "from": "support_team_01",
                      "verdict": "block",
                      "action": "remove",
                      "riskScore": 100,
                      "warnSender": false,
                      "hosts": [
                        "uniswap-claim-rewards.vercel.app"
                      ],
                      "signals": [
                        "ASKS_FOR_SECRET",
                        "FAKE_SUPPORT_DM",
                        "AIRDROP_CLAIM_BAIT",
                        "URGENCY"
                      ]
                    },
                    {
                      "id": "m3",
                      "from": "support_team_01",
                      "verdict": "block",
                      "action": "remove",
                      "riskScore": 100,
                      "warnSender": false,
                      "hosts": [
                        "uniswap-claim-rewards.vercel.app"
                      ],
                      "signals": [
                        "AIRDROP_CLAIM_BAIT"
                      ]
                    },
                    {
                      "id": "m4",
                      "from": "bob",
                      "verdict": "allow",
                      "action": "allow",
                      "riskScore": 0,
                      "warnSender": false,
                      "hosts": [],
                      "signals": []
                    }
                  ],
                  "blocklist": {
                    "loaded": true,
                    "entries": 346857,
                    "source": "ScamSniffer scam-database (GPL-3.0)"
                  },
                  "note": "Heuristic screening; same checks as /v1/scam-message-check per message. Not financial or legal advice."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required (x402). See PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          }
        }
      }
    },
    "/v1/support-ticket-triage": {
      "get": {
        "summary": "Crypto support ticket triage: situation, priority, what to ask, bilingual reply (exchange / wallet helpdesk bots)",
        "description": "For the helpdesk bots and agents of crypto exchanges, wallets and projects (and Telegram / Discord support desks): send ONE customer ticket in Chinese or English and get what a senior support agent would do with it. Situation (21 common cases: deposit not credited, wrong network (supported or not), missing memo / tag, unsupported token, withdrawal \"completed\" but not received, stuck pending tx, sent to a token contract, bridge delay, tokens not showing, fake support DMs, address poisoning, leaked seed phrase / private key, approval drain, unknown airdrop tokens, phishing site, \"fund recovery\" scams, hacked exchange account, no gas, changed deposit address, test transfer) with alternatives and a confidence; priority P0 (assets still at risk: act in minutes) to P3; an honest recoverability call (never promises recovery); the networks, coins, amounts, TxIDs, addresses, UID, wallets, exchanges and links found in the ticket and exactly what to ask the customer for next; a ready reply in Chinese AND English from a 25-situation crypto support kit with the placeholders it can fill filled in (platform name, network, TxID, coin, official site); the internal note; a pre-filled escalation ticket for the tech / risk / security team; and the red lines (never ask for a seed phrase, never promise recovery, never refer to \"recovery services\"). Safety: a seed phrase or private key the customer pasted is detected and returned redacted (priority P0), and links / scam scripts in the ticket get the same checks as /v1/scam-message-check. Optional supported_networks decides between \"wrong network, we support it\" and \"we don't\". Rule-based and deterministic, no AI model. Up to 2500 characters and 10 links (POST JSON for long tickets). Not legal or financial advice.",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.04"
          },
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "network": "eip155:8453",
          "payTo": "0xF6ec323b6b636111A32c9786d3786D30BD1D0c49"
        },
        "operationId": "support_ticket_triage",
        "parameters": [
          {
            "name": "ticket",
            "in": "query",
            "required": true,
            "description": "The customer's support message (Chinese or English, max 2500 characters). \"text\" and \"message\" are accepted as aliases.",
            "schema": {
              "type": "string",
              "example": "Hi, I withdrew 250 USDT from Binance to my deposit address on your site but I picked Arbitrum One instead of ERC20. It's been 2 hours and my balance is still 0. TxID: 0x5c4d1f0e9b8a7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d. Can you get it back?"
            }
          },
          {
            "name": "platform_name",
            "in": "query",
            "required": false,
            "description": "Optional: your exchange / wallet / project name, filled into the reply (max 60 characters).",
            "schema": {
              "type": "string",
              "example": "ExampleEx"
            }
          },
          {
            "name": "supported_networks",
            "in": "query",
            "required": false,
            "description": "Optional: networks your platform accepts deposits on, comma-separated (ethereum, tron, bsc, arbitrum, optimism, base, polygon, solana, avalanche, ton, bitcoin, xrp; ERC20 / TRC20 / BEP20 work too). Decides the wrong-network reply automatically.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Which reply language is primary (both are always returned). auto = the ticket's language.",
            "schema": {
              "type": "string",
              "enum": [
                "auto",
                "zh",
                "en"
              ],
              "example": "auto"
            }
          },
          {
            "name": "official_domains",
            "in": "query",
            "required": false,
            "description": "Optional: your official domains, comma-separated (max 10). Look-alikes in the ticket are flagged and the first one fills [official URL].",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "official_addresses",
            "in": "query",
            "required": false,
            "description": "Optional: your official contract / deposit addresses, comma-separated (max 20). Look-alike addresses in the ticket are flagged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "example": {
                  "priority": "P2",
                  "category": "deposit",
                  "situation": {
                    "id": "03",
                    "title": {
                      "en": "Wrong network the platform does not support"
                    }
                  },
                  "confidence": 0.81,
                  "alternatives": [
                    {
                      "id": "02",
                      "when": "platform_supports_actual_network"
                    }
                  ],
                  "recoverability": {
                    "level": "depends_on_platform"
                  },
                  "entities": {
                    "actualNetwork": "arbitrum",
                    "intendedNetwork": "ethereum",
                    "coins": [
                      "USDT"
                    ],
                    "amounts": [
                      "250 USDT"
                    ],
                    "txHashes": [
                      "0x5c4d1f0e…"
                    ],
                    "exchanges": [
                      "binance"
                    ]
                  },
                  "missingInfo": [
                    "address"
                  ],
                  "reply": {
                    "primary": "en",
                    "en": "Hi, I'm sorry this happened. After checking, the funds were sent on Arbitrum One, which our platform does not currently support for deposits, so they …",
                    "zh": "您好，非常抱歉遇到这种情况。经过核实，这笔资金是通过 Arbitrum One …",
                    "placeholdersLeft": [
                      "[工单号]",
                      "[ticket number]"
                    ]
                  },
                  "escalation": {
                    "needed": true,
                    "team": "tech"
                  },
                  "safety": {
                    "secretsInTicket": [],
                    "scan": {
                      "verdict": "allow"
                    }
                  },
                  "summary": {
                    "en": "P2 · Wrong network the platform does not support. Depends on the platform's technical team (may be possible, may cost a fee, may be impossible). Do not promise recovery. Ask for: address."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required (x402). See PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          }
        }
      }
    },
    "/v1/credits/starter": {
      "get": {
        "summary": "Prepaid credits: starter pack (300 credits)",
        "description": "300 prepaid credits for Safe-Send Check (1 credit = $0.001 of list price; address-check 1, poison-check 1, scam message check 3 (= 100 chat messages), OFAC check 5, payout pre-flight of up to 200 recipients 50 = 6 payout checks, support-ticket triage 40 = 7 tickets). Returns a new key; then send \"Authorization: Bearer <key>\" on any paid route instead of paying per call. Also buyable by a plain USDC transfer on Base: GET /v1/credits/quote?pack=starter&from=<your address>.",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.25"
          },
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "network": "eip155:8453",
          "payTo": "0xF6ec323b6b636111A32c9786d3786D30BD1D0c49"
        },
        "operationId": "credits_starter",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "example": {
                  "key": "ssk_<32 random characters>",
                  "credits": 300,
                  "pack": "starter",
                  "creditUsd": 0.001,
                  "usage": {
                    "http": "curl -H \"Authorization: Bearer <key>\" \".../v1/payout-check?recipients=...\""
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required (x402). See PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          }
        }
      }
    },
    "/v1/credits/team": {
      "get": {
        "summary": "Prepaid credits: team pack (1500 credits)",
        "description": "1500 prepaid credits for Safe-Send Check (1 credit = $0.001 of list price; address-check 1, poison-check 1, scam message check 3 (= 500 chat messages), OFAC check 5, payout pre-flight of up to 200 recipients 50 = 30 payout checks, support-ticket triage 40 = 37 tickets). Returns a new key; then send \"Authorization: Bearer <key>\" on any paid route instead of paying per call. Also buyable by a plain USDC transfer on Base: GET /v1/credits/quote?pack=team&from=<your address>.",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "1"
          },
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "network": "eip155:8453",
          "payTo": "0xF6ec323b6b636111A32c9786d3786D30BD1D0c49"
        },
        "operationId": "credits_team",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "example": {
                  "key": "ssk_<32 random characters>",
                  "credits": 1500,
                  "pack": "team",
                  "creditUsd": 0.001,
                  "usage": {
                    "http": "curl -H \"Authorization: Bearer <key>\" \".../v1/payout-check?recipients=...\""
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required (x402). See PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          }
        }
      }
    },
    "/v1/credits/ops": {
      "get": {
        "summary": "Prepaid credits: ops pack (9000 credits)",
        "description": "9000 prepaid credits for Safe-Send Check (1 credit = $0.001 of list price; address-check 1, poison-check 1, scam message check 3 (= 3000 chat messages), OFAC check 5, payout pre-flight of up to 200 recipients 50 = 180 payout checks, support-ticket triage 40 = 225 tickets). Returns a new key; then send \"Authorization: Bearer <key>\" on any paid route instead of paying per call. Also buyable by a plain USDC transfer on Base: GET /v1/credits/quote?pack=ops&from=<your address>.",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "5"
          },
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "network": "eip155:8453",
          "payTo": "0xF6ec323b6b636111A32c9786d3786D30BD1D0c49"
        },
        "operationId": "credits_ops",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "example": {
                  "key": "ssk_<32 random characters>",
                  "credits": 9000,
                  "pack": "ops",
                  "creditUsd": 0.001,
                  "usage": {
                    "http": "curl -H \"Authorization: Bearer <key>\" \".../v1/payout-check?recipients=...\""
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required (x402). See PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          }
        }
      }
    },
    "/v1/networks": {
      "get": {
        "summary": "Supported networks and aliases (free)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "x-mcp": {
    "url": "https://safe-send-check.agent-arena-base.workers.dev/mcp",
    "transport": "streamable-http",
    "scopes": [
      "https://safe-send-check.agent-arena-base.workers.dev/mcp/sanctions",
      "https://safe-send-check.agent-arena-base.workers.dev/mcp/scam",
      "https://safe-send-check.agent-arena-base.workers.dev/mcp/support"
    ]
  }
}