{"openapi":"3.1.0","info":{"title":"Cabal-Hunter API","version":"1.1.0","description":"On-chain Solana token safety scanner for AI trading agents and bots. Given a Solana mint address it traces coordinated wallet funding, same-block bundle buys, serial-launcher deployers and same-block coordinated dumps, and returns one Exit-Liquidity Risk verdict (recommendation + 0-100 cabal_score) BEFORE you buy. Call it before any Solana swap. risk_level HIGH (or cabal_score >= 65) means strong coordinated-control signals were observed. Tokens you already hold can be watched with POST /api/watch, which pushes a webhook if the price falls 12%+ or liquidity falls 18%+ between checks 15 seconds apart. This is on-chain evidence, not financial advice, and not a safety rating. 5 free scans, no signup — then 250/month free with an email; then $0.01 USDC per scan via x402.","contact":{"name":"Cabal-Hunter","url":"https://api.cabal-hunter.com/","email":"paulf280@gmail.com"}},"servers":[{"url":"https://api.cabal-hunter.com"}],"paths":{"/api/scan-cabal":{"get":{"operationId":"scanCabalGet","summary":"Scan a Solana mint for cabal / rug / bundle risk (GET)","description":"Returns the full Exit-Liquidity Risk analysis for a Solana token. Use before buying/swapping. 5 free scans, no signup — then 250/month free with an email.","parameters":[{"name":"mintAddress","in":"query","required":true,"schema":{"type":"string"},"description":"Base58 Solana token mint address"}],"responses":{"200":{"description":"Cabal analysis","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CabalReport"}}}}}},"post":{"operationId":"scanCabal","summary":"Scan a Solana mint for cabal / rug / bundle risk","description":"Primary endpoint. Pass a mint address; get risk_level (HIGH | ELEVATED | LOW_SIGNAL), a 0-100 cabal_score, the deployer track record and on-chain evidence. LOW_SIGNAL means our checks did not fire — it is NOT a safety rating, and most tokens lose value regardless. Signals only, not financial advice.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["mintAddress"],"properties":{"mintAddress":{"type":"string","description":"Base58 Solana token mint address"}}}}}},"responses":{"200":{"description":"Cabal analysis","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CabalReport"}}}}}}},"/api/scan-batch":{"post":{"operationId":"scanBatch","summary":"Scan up to 25 Solana mints in one call","description":"Screen a whole feed of new launches in a single request instead of looping. Returns one result row per mint, in the order sent, each carrying the same analysis as /api/scan-cabal. A mint that cannot be analysed comes back as an error row rather than failing the request, so a batch is always safe to parse. Requires an X-API-Key on the Pro plan and costs one scan per mint. Signals only, not financial advice.","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["mints"],"properties":{"mints":{"type":"array","items":{"type":"string"},"description":"Base58 Solana token mint addresses, up to 25. Duplicates are collapsed and charged once."}}}}}},"responses":{"200":{"description":"One result row per mint","content":{"application/json":{"schema":{"type":"object","properties":{"requested":{"type":"integer"},"scanned":{"type":"integer"},"failed":{"type":"integer"},"skipped":{"type":"integer"},"credits_remaining":{"type":"integer"},"results":{"type":"array","items":{"type":"object","description":"A CabalReport plus its mint, or {mint, error} if that one could not be analysed"}}}}}}},"400":{"description":"No valid mints, or more than 25 sent"},"401":{"description":"Unknown API key"},"402":{"description":"No API key supplied"}}}},"/api/wallet-report":{"get":{"operationId":"walletReport","summary":"Wallet case file: what the chain proves about one Solana wallet","description":"First funding (exchange named), tokens it created (only where the creation transaction names it), launches it bought in the first seconds with the buy transaction, repeat groups with the all-launch baseline, SOL in/out per launch (balanced records only), and its biggest SOL counterparties with exchange and program-account labels. Every item carries its transaction. States what the chain recorded, never who is behind a wallet. Over the API this needs a PAID plan (x-api-key): $9 plan 100 distinct wallets a month, Pro 2,000; the same wallet again that month is free; each new wallet also uses one scan. Cached up to 6 h. Responses: 402 wallet_api_paid (free key), wallet_limit (monthly allowance used, with the reset date), wallet_key_required (no key).","parameters":[{"name":"wallet","in":"query","required":true,"schema":{"type":"string"},"description":"Base58 Solana wallet address"}],"responses":{"200":{"description":"Wallet report: kind, funded_by, launched, launch_blocks, groups, money, counterparties, transfers_read, lookups {plan, used, limit, resets}"},"402":{"description":"Paid plan needed, or monthly allowance used"}}}},"/api/info":{"get":{"operationId":"info","summary":"Pricing, endpoints and full response schema","responses":{"200":{"description":"Service info"}}}},"/api/cex-funding":{"get":{"operationId":"cexFunding","summary":"Per-exchange funding breakdown for a mint (Pro plan over the API)","parameters":[{"name":"mint","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"CEX funding breakdown"}}}},"/api/cohorts":{"get":{"operationId":"cohorts","summary":"Team / Snipers / Insiders cohort breakdown (Pro plan over the API)","parameters":[{"name":"mint","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cohort breakdown"}}}},"/api/trade-analysis":{"get":{"operationId":"tradeAnalysis","summary":"Cohorts + wash-trading score + exit-liquidity price impact (Pro plan over the API)","parameters":[{"name":"mint","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Combined trade analysis"}}}},"/api/wallet-check":{"get":{"operationId":"walletCheck","summary":"Is this wallet in this token?","description":"The caller brings a wallet address; the response says what that address is doing in that token. Answers from the traced holders (rank, % of supply, buy slot, cluster funder, token creator) and from a live on-chain holding lookup, so a wallet outside the traced set is still resolved rather than dismissed. IMPORTANT for automated use: a wallet we do not find is NOT clean. The trace covers the largest holders, and a wallet that sold out and closed its token account leaves nothing to observe — the note field states this in every response. holding.sold_out = true means a token account exists holding none of the token, i.e. it held this token and has since sold. No API key required; rate limited per IP.","parameters":[{"name":"mint","in":"query","required":true,"schema":{"type":"string"},"description":"Base58 token mint"},{"name":"wallet","in":"query","required":true,"schema":{"type":"string"},"description":"Base58 wallet address to look for"}],"responses":{"200":{"description":"What we can observe about that wallet in that token"},"400":{"description":"mint or wallet is not a base58 Solana address"},"429":{"description":"Too many checks from one address in a minute"}}}},"/api/screen-list":{"get":{"operationId":"listScreenList","summary":"List the wallets on your private screen list","description":"A paid add-on. Your list is private to your key: wallets and labels are yours alone, and nothing is published. Requires X-API-Key with the Screen List enabled; without it the response is 402 with error screen_list_not_enabled.","security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Your wallets, newest first, with count and max"},"401":{"description":"Missing API key"},"402":{"description":"The Screen List add-on is not enabled on this key"}}},"post":{"operationId":"addScreenListWallet","summary":"Add a wallet to your screen list (or relabel one already on it)","description":"From then on every scan you run also reports whether this wallet holds the token or funded a detected cluster — as observations, never as claims about who the wallet belongs to. Addresses are validated strictly (base58, 32-44 chars): a lookalike string that could never match is refused with the reason, not stored silently. A list holds up to 500 wallets.","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["wallet"],"properties":{"wallet":{"type":"string","description":"Base58 Solana wallet address"},"label":{"type":"string","description":"Your own note, up to 60 chars — shown only back to you"}}}}}},"responses":{"200":{"description":"Added (or relabelled), with the new count"},"400":{"description":"Not a valid Solana address"},"401":{"description":"Missing API key"},"402":{"description":"The Screen List add-on is not enabled on this key"},"409":{"description":"The list is full — remove a wallet before adding another"}}},"delete":{"operationId":"clearScreenList","summary":"Clear your screen list (DELETE /api/screen-list/{wallet} removes one)","security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Removed"},"401":{"description":"Missing API key"},"402":{"description":"Not enabled on this key"}}}},"/api/screen-list/checkout":{"post":{"operationId":"enableScreenList","summary":"Enable the Screen List add-on on your key ($9/month, card)","description":"Returns a Stripe Checkout url; completing it switches the add-on on for exactly the key that made this call — nothing new is minted and there is nothing to copy. Cancel anytime from the billing portal; access follows the subscription.","security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"A checkout url to complete in the browser"},"401":{"description":"Missing API key"},"404":{"description":"Unknown key"},"409":{"description":"Already enabled on this key"}}}},"/api/watch":{"get":{"operationId":"listWatches","summary":"List the dump watches registered by your key","description":"Returns only YOUR watches. Requires X-API-Key. The response carries used and limit so a client can see its remaining headroom without guessing.","security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Your watches","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchList"}}}},"401":{"description":"Missing or unknown API key"}}},"post":{"operationId":"watchDump","summary":"Watch a token you hold and get a webhook the moment it starts dumping","description":"A scan answers whether a token is safe to BUY. This answers whether it is still safe to HOLD. We poll the token continuously and POST your webhook_url the instant a coordinated dump or a liquidity drain begins — with the on-chain transactions that prove it, not just a verdict. Requires a key so that only you can see or remove your own watches. Any key gets the alert by email (omit webhook_url and it goes to the address on your key); webhook_url delivery is part of the Pro plan. On the $9 plan (newest watch) and Pro (every watch) the same destination also receives insider_* events for 7 days (insider_dev_sold, insider_dev_sent, insider_exit, insiders_selling, insiders_buying, insiders_digest), each with the wallet, its role, the share of supply and the transaction. webhook_url must resolve to a PUBLIC address: loopback, private, link-local and cloud-metadata targets are refused. Re-posting the same mint and url is idempotent and does not consume a slot.","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["mint"],"properties":{"mint":{"type":"string","description":"Base58 Solana token mint address"},"webhook_url":{"type":"string","description":"Pro plan: public http(s) URL we POST the alert to. Omit it for an email alert to the address on your key."}}}}}},"responses":{"200":{"description":"Watch registered"},"400":{"description":"Invalid mint, or a webhook_url that is not a public http(s) address"},"401":{"description":"Missing or unknown API key"},"402":{"description":"pro_required: webhook, Discord or Slack delivery needs the Pro plan"},"429":{"description":"Your plan's active-watch limit is reached. The body carries plan, limit and used."}}},"delete":{"operationId":"unwatchDump","summary":"Remove one of your own watches","description":"Deletes a watch belonging to your key. Omit webhook_url to remove every watch you hold on that mint. Never affects another key's watches.","security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["mint"],"properties":{"mint":{"type":"string"},"webhook_url":{"type":"string","description":"Optional — narrows the delete to one destination"}}}}}},"responses":{"200":{"description":"Removed"},"401":{"description":"Missing or unknown API key"},"404":{"description":"You have no watch registered on that mint"}}}}},"components":{"securitySchemes":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Your Cabal-Hunter key. Required for watch endpoints so a watch belongs to exactly one caller."},"x402Payment":{"type":"apiKey","in":"header","name":"X-Payment-Signature","description":"Solana USDC payment tx signature (x402). Omit for the 5 anonymous scans/month, or use a free key (one email) for 250/month per IP."}},"schemas":{"WatchList":{"type":"object","properties":{"watches":{"type":"array","items":{"type":"object","properties":{"mint":{"type":"string"},"webhook_url":{"type":"string"},"created_ts":{"type":"integer"}}}},"used":{"type":"integer","description":"Active watches on this key"},"limit":{"type":"integer","description":"How many this plan allows"},"plan":{"type":"string"}}},"DumpAlert":{"type":"object","description":"What we POST to your webhook_url when a watched token starts dumping. Every claim carries its evidence: coordinated_detail.evidence_txs are Solscan-verifiable signatures, so your bot can confirm the alert on-chain rather than trusting us.","properties":{"event":{"type":"string","enum":["dump_detected","liquidity_draining"]},"mint":{"type":"string"},"reason":{"type":"string","description":"Human-readable trigger, e.g. price -34% since last check"},"drop_pct":{"type":"number"},"price_usd":{"type":"number"},"previous_price_usd":{"type":"number"},"liquidity_usd":{"type":"number"},"previous_liquidity_usd":{"type":"number"},"coordinated":{"type":"boolean","description":"True when a same-block coordinated sell was confirmed on-chain at alert time"},"coordinated_detail":{"type":"object","nullable":true,"properties":{"wallet_count":{"type":"integer"},"sold_pct":{"type":"number","description":"% of supply dumped in a single slot"},"still_held_pct":{"type":"number"},"slot":{"type":"string"},"evidence_txs":{"type":"array","items":{"type":"string"},"description":"Solscan-verifiable signatures"}}},"verify":{"type":"string","description":"Human-readable map for the same mint"},"action":{"type":"string"},"ts":{"type":"integer"}}},"CabalReport":{"type":"object","properties":{"mint":{"type":"string"},"risk_level":{"type":"string","enum":["HIGH","ELEVATED","LOW_SIGNAL"],"description":"What we observed. HIGH = strong coordinated-control signals. LOW_SIGNAL = our checks did not fire, which is NOT a safety rating: most tokens lose value anyway."},"disclaimer":{"type":"string","description":"Always returned. On-chain signals, not financial advice."},"recommendation":{"type":"string","enum":["SAFE","REVIEW","AVOID"],"description":"DEPRECATED — prefer risk_level. Values are frozen because existing agents gate on the literal string AVOID; renaming them would fail open."},"cabal_score":{"type":"integer","description":"0-100. >=65 HIGH risk, >=35 caution."},"risk":{"type":"string","enum":["HIGH","MEDIUM","CLEAN"]},"is_controlled":{"type":"boolean","description":"true when score >= 35 (insiders positioned to dump)."},"confidence":{"type":"string","enum":["HIGH","LOW"],"description":"Confidence in THIS scan's completeness (HIGH when wallets_checked >= 5). Check the validator's own output, not just the verdict."},"scan_complete":{"type":"boolean","description":"True only when the trace had enough coverage. A SAFE result with scan_complete=false is auto-downgraded to REVIEW — never trust a clean verdict from an incomplete scan."},"wallets_checked":{"type":"integer","description":"Holder wallets actually traced — the scan-depth signal. Low = shallow/sparse trace, treat a clean result as suspect."},"analysis_time_ms":{"type":"integer","description":"Processing latency; with 'source', lets the caller gauge data completeness."},"liquidity_usd":{"type":"number","description":"Live liquidity (USD) on the deepest pair."},"market_cap":{"type":"number","description":"Live market cap (USD)."},"honeypot_risk":{"type":"string","enum":["LOW","HIGH"],"description":"Solana-native honeypot verdict: live freeze authority or Token-2022 fee/hook/delegate traps"},"mint_authority_revoked":{"type":"boolean"},"freeze_authority_revoked":{"type":"boolean"},"token2022_risks":{"type":"array","items":{"type":"string"}},"presale_vault":{"type":"object","description":"Present only when a Meteora Alpha Vault bought this token from its pool before trading opened. bought_pct_of_minted = share of ALL tokens ever minted; wallets = escrows with a deposit (wallets_exact false = a floor); vaults[].access = authority (only wallets the vault authority added could pay in) | allow_list | anyone; lines = the sentences we print. Absent = not stated, never \"no vault\". Not part of cabal_score."},"exit_liquidity_risk":{"type":"boolean","description":"True when liquidity is too thin vs market cap to exit without heavy slippage — the soft-rug / dev-dump risk, independent of cabal coordination."},"verdict":{"type":"string","description":"Plain-English summary."},"time_sync":{"type":"boolean","description":"Same-block bundled buy group detected."},"coordinated_exit":{"type":"boolean","description":"Same-block coordinated dump detected."},"top_holder_pct":{"type":"number"},"deployer":{"type":"object","description":"{ creator, tokens_launched, dead, sampled, dead_pct, verdict, reputation, best_peak_usd, median_peak_usd, pump_and_dumps, dead_on_arrival, still_alive }. Launch history covers pump.fun, Raydium, Orca, Meteora and PumpSwap; a launch counts only where the transaction created the mint, so re-minting an existing token is never counted. verdict FIRST_LAUNCH = checked, no earlier launches found; verdict UNKNOWN = the history could not be established and is NOT a clean record. Paid: launches[] — full per-launch trajectory (mint, symbol, peak_mcap_usd, now_mcap_usd, drawdown_from_peak, status)."},"coordinated_clusters":{"type":"array","items":{"type":"object"},"description":"Scored coordination groups with evidence_txs[]."},"filtered_clusters":{"type":"array","items":{"type":"object"},"description":"CEX/infra groups excluded from the score."},"top_reasons":{"type":"array","items":{"type":"string"}},"free_queries_remaining":{"type":"integer"},"source":{"type":"string","enum":["pre_indexed","real_time"]},"computed_at":{"type":"number"}}}}}}