API and MCP guide
For PhishHunt members · Last updated: 10 October 2026
PhishHunt has two machine interfaces. The REST API suits scripts, SOAR playbooks and bots. The MCP server lets an AI assistant such as Claude work with PhishHunt directly. Both act as you, follow the same rules as the web app, and need a member API key.
Not a member? The defanged public feed needs no key: github.com/rectifyq/phishhunt-feed. Membership is by invitation. Request one on the home page.
1. Get an API key
- Sign in to PhishHunt and open Me.
- Under API keys, choose a Kind, give the key a label you will recognise (for example “SOAR playbook”), and press Issue key.
- Copy the key straight away. It is shown once. PhishHunt stores only a hash of it and cannot show it again.
| Kind | Looks like | Use it for | Notes |
|---|---|---|---|
| user | rq_user_… | Your own scripts and your AI assistant, where you are at the keyboard | Works at once. Earns points on the human track, like the web app. |
| bot | rq_bot_… | Unattended automation: scheduled jobs, mailbox parsers, SOAR | Works once an admin approves it. Earns on the automated track (fewer points per action) with higher limits. |
Keys work from any country. If a key may have leaked, press Revoke all my keys under Me → API keys, then issue new ones. Revoking is all-or-nothing: every key on your account stops working at once.
2. Hosts, sign-in and formats
| Interface | Base URL |
|---|---|
| REST API | https://api.phishhunt.rectifyq.com/v1 |
| MCP server | https://mcp.phishhunt.rectifyq.com/mcp |
- Sign-in: send the key in every request:
Authorization: Bearer rq_user_… - Bodies: every
POSTtakes a JSON object. Sendcontent-type: application/json. Responses are JSON too, apart from the CSV feed. - Unknown fields are ignored. A field with a value outside its list (for example an unknown
vector) is either refused with400or left empty: each endpoint below says which. - Times are Unix epoch seconds, UTC.
- Case ids look like
PH-2026-00012. Use them in paths as{id}. - URLs come back defanged, for example
hxxps://bad[.]example/login. Send them live, as received; only search (q) also takes a defanged one. - Responses are never cached (
cache-control: no-store).
3. Rate limits
Limits apply per key and per member, whichever runs out first. A write is any request that is not a GET; on the MCP server, any tool that changes something.
| Key | Writes / hour | Reads / minute | Reads / month | Writes / month |
|---|---|---|---|---|
| user | 120 | 300 | 150,000 | 5,000 |
| bot | 500 | 600 | 500,000 | 20,000 |
Over a limit you get 429 rate_limited, with a Retry-After header in seconds and a message naming the limit you hit. Wait that long before retrying. If the whole platform passes its daily ceiling, writes pause until midnight UTC (503 read_only); reads keep working. Higher “partner” limits for bot keys are by arrangement with the admins.
4. Rules for using the data
The API and MCP server are covered by the Terms of Use, like the rest of PhishHunt. In particular:
- Everything comes back defanged. Store and share indicators that way. Refang only inside a tool that needs a live value, such as a blocklist or firewall, never in a chat or a ticket where someone may click it.
- The one exception is
/v1/feeds/live.csv: live URLs of validated cases, marked TLP:GREEN, for members' defensive tooling only. Do not republish it. - Never visit a phishing site from your integration, and respect the case markings: no scans for PAP:RED or do-not-probe cases. The API refuses rechecks on those.
- No personal data in anything you submit, tag or enrich: no victims' details, leaked data or credentials.
- Organisations appear as colour aliases (for example “Yellow Bank”). The real names, and the analysts' attribution notes, are never available through the API or MCP.
5. Quick start
Keep the key in an environment variable, not in your script:
export PHISHHUNT_KEY="rq_user_xxxxxxxx_…"
API=https://api.phishhunt.rectifyq.com/v1
# who am I?
curl -s "$API/me" -H "Authorization: Bearer $PHISHHUNT_KEY"
# submit a link you received (paste it exactly as received)
curl -s -X POST "$API/cases" -H "Authorization: Bearer $PHISHHUNT_KEY" \
-H "content-type: application/json" \
-d '{"url":"https://login-secure.example/verify","vector":"sms"}'
# read the case back
curl -s "$API/cases/PH-2026-00012" -H "Authorization: Bearer $PHISHHUNT_KEY"
The same in Python:
import os, requests
API = "https://api.phishhunt.rectifyq.com/v1"
H = {"Authorization": f"Bearer {os.environ['PHISHHUNT_KEY']}"}
r = requests.post(f"{API}/cases", headers=H, json={"url": "https://login-secure.example/verify", "vector": "sms"})
r.raise_for_status()
case = r.json()
print(case["case_id"], case["recorded_as"]) # first_submission, page or sighting
# every validated case, newest first, 100 at a time
cursor = None
while True:
params = {"state": "validated", "limit": 100, **({"cursor": cursor} if cursor else {})}
page = requests.get(f"{API}/cases", headers=H, params=params).json()
for c in page["items"]:
print(c["case_id"], c["url_defanged"])
cursor = page["next_cursor"]
if not cursor:
break
6. All endpoints at a glance
Every path starts with https://api.phishhunt.rectifyq.com. Click an endpoint for its fields and examples.
| Endpoint | What it does |
|---|---|
| Cases | |
POST /v1/cases | Submit a URL (deduplicated) |
GET /v1/cases | Search and list cases, newest first |
GET /v1/cases/{id} | One case in full |
| Evidence | |
POST /v1/cases/{id}/lookups | Run the platform's own lookups, as the case page does |
POST /v1/cases/{id}/enrich | Add a finding from your own tooling |
POST /v1/cases/{id}/capture | Attach an urlscan or Lookyloo permalink, or an encrypted HAR link |
POST /v1/cases/{id}/tags | Add tags |
POST /v1/cases/{id}/poster | Say which social media account posted it |
| Votes and reports | |
POST /v1/cases/{id}/validate | Vote on a case |
GET /v1/cases/{id}/report/parties | Where to report it, best first, with mail drafts |
POST /v1/cases/{id}/report | Record a report you sent |
POST /v1/reports/batch | Record one report for up to 50 cases |
POST /v1/reports/{id}/confirm | Add the ticket reference a party gave you |
| More actions | |
POST /v1/cases/{id}/recheck | Ask for a liveness recheck, or report what you saw |
POST /v1/cases/{id}/writeup | Link a write-up you published |
| Read-only data | |
GET /v1/me | Your handle, rank, track, key prefix and points balance, and the latest PhishHunt notice |
GET /v1/me/submissions | Every URL you submitted, and the case each one is on |
GET /v1/campaigns, /v1/campaigns/{id} | Campaigns and suspected clusters |
GET /v1/posters | Social media accounts that posted phishing, with what they posted |
GET /v1/stats/{metric} | Platform statistics |
GET /v1/hunters/{handle} | A member's profile, as members see it |
GET /v1/bounties | Bounties |
GET /v1/feeds/live.csv | Live URLs of validated cases (TLP:GREEN, see section 4) |
In the field tables below, required must always be sent, sometimes is needed only in the case described, and optional may be left out.
7. Cases: submit, list, read
POST /v1/cases — submit a URL
Submit a phishing link you found or received. PhishHunt canonicalises it and checks it against known cases first, so you never create a duplicate.
| Field | Type | Required? | What to put |
|---|---|---|---|
url | string | required | The link exactly as received, not defanged. Shortened links are fine. |
vector | string | optional | Where it was seen: sms, whatsapp, telegram, email, ads, search, qr or other. Any other value is left empty. |
target_hint | string | optional | The sector it imitates: banking, ewallet, courier, gov, telco, crypto, marketplace, airline, insurer or other. Any other value is left empty. |
posted_by | object | optional | The social media account that posted the link or the QR code: {"platform": "threads", "account": "@someone"}. platform is threads, facebook, instagram, tiktok, x, telegram or youtube; account is the username (with or without the @) or a link to the profile or one of its posts, which names the platform too. Same as who posted it; a bad one fails the whole submission. |
tags | array of strings | optional | Tags to add at once, for example ["lure:parcel-redelivery"]. Same rules as adding tags. |
references | array | optional | Up to 10 links to where you found it (the scam ad, the post). Each is a URL string, or {"url": "…", "note": "…"} with a note of up to 140 characters. http or https only, never on the phishing domain itself, never a tracked phishing URL. A bad one fails the whole submission. |
warning_reason | string | sometimes | Needed when the URL is on a known-legitimate domain (you get 409 warninglist_confirm without it): at least 5 characters on why it is phishing, for example “open redirect to a fake login”. Up to 300 characters are kept. |
Request
curl -s -X POST "$API/cases" \
-H "Authorization: Bearer $PHISHHUNT_KEY" -H "content-type: application/json" \
-d '{
"url": "https://login-secure.example/verify",
"vector": "sms",
"target_hint": "banking",
"tags": ["lure:account-locked"],
"references": [{"url": "https://www.facebook.com/ads/library/?id=123", "note": "scammer's Facebook ad"}]
}'
Response — 201 for a new case, 200 otherwise
{
"case_id": "PH-2026-00012",
"state": "submitted",
"recorded_as": "first_submission",
"duplicate_of": null,
"url_defanged": "hxxps://login-secure[.]example/verify",
"track": "human",
"first_submitter": "yourhandle",
"points_pending": 0,
"points_confirmed": 15
}
recorded_as | Meaning |
|---|---|
first_submission | A new case. You are its first submitter. |
page | A new URL on a site that already has an open case (same attacker-owned domain). It joined that case, given in case_id; page says it is URL n of of. |
sighting | PhishHunt already had this URL. Your sighting is recorded on the existing case, given in case_id and duplicate_of. |
If the case was saved but a reference link could not be added (the case already has 25), the response also carries references_error.
Errors you may see
400 validation_failed— nourl, a URL that cannot be read, or a bad reference link.409 warninglist_confirm— the URL is on a known-legitimate domain: send it again withwarning_reason. The error'swarningobject says which list matched.422 warninglist_block— the URL is a genuine site's front page or a known-legitimate IP. Five of these within an hour hold your account.
GET /v1/cases — search and list cases
Newest first. All query parameters are optional and can be combined.
| Parameter | What it does |
|---|---|
q | Search. A case id matches that case. A URL, host or domain (fanged or defanged) matches every case on its registrable domain and anything under it. A word of 3+ letters (a-z, 0-9, -) matches anywhere in the URL, for example ?q=maybank. Anything else is 400. The response then says how q was read, in search. |
state | submitted, validating, validated, enriched, reported, acknowledged, down, rejected or expired |
kind | phishing, scam, compromised (a hacked site) or out_of_scope. Each case carries its kind: empty until a vote decides it |
submitter | The handle of the hunter who submitted the case, for example alice (heimdall for cases Project Heimdall's feed filed). Each case carries it as first_submitter |
sector | A sector, as in target_hint above |
alias | A colour alias, for example Yellow Bank |
tag | A tag, for example lure:parcel-redelivery |
campaign | A campaign id |
since | Only cases created at or after this time (epoch seconds). Use it to poll for new cases. |
limit | 1–100, default 50 |
cursor | The next_cursor of the previous page |
Response
{
"items": [ { "case_id": "PH-2026-00012", "url_defanged": "hxxps://login-secure[.]example/verify", "state": "validated", … } ],
"next_cursor": "1791234567"
}
Pass next_cursor back as cursor until it is null.
GET /v1/cases/{id} — one case in full
State, liveness, target alias, tags, sightings, every URL of the site (pages), findings, captures, reports, votes and block checks. It also has:
reportable: whether the case can be reported yet (see Reports);readiness: the evidence checklist and the signals PhishHunt worked out from it;ai_gate: whether the AI's verdict opened reporting, and if not, why;pages[].id: the id to send aspagewhen a finding or capture is about one of the site's other URLs;posted_by: the social media accounts members said posted its URLs —platform,handle,label,profile_url, theurls(defanged) and how manymembersnamed it. The rest of how each URL was found, and the comments, stay in the app.
8. Evidence: findings, captures, tags
POST /v1/cases/{id}/enrich — add a finding
Record one thing you found with your own tooling: the registrar, an IP, the kit's hash, where the link really lands. One finding per request.
| Field | Type | Required? | What to put |
|---|---|---|---|
type | string | required | What kind of finding it is (list below) |
value | string | required | The finding itself, up to 2,000 characters |
source | string | required | Where it came from (list below). manual for your own analysis. |
confidence | string | optional | low, moderate or high |
field | string | optional | A sub-label. Leave it out for the one the case page reads: domain_age → registered (also expires, first_cert), ip → a / aaaa, nameservers → ns, cert_issuer → issuer, cert_sans → hostnames, hosting → as_holder. Common other words (created, creation_date, expiry…) are read the same. |
page | string | optional | The id of one of the site's other URLs (pages[].id on the case). Leave it out for the case's first URL. |
typeregistrar,asn,ip,country,cert_issuer,cert_sans,redirect_chain,landing_url,kit_family,kit_hash,screenshot,page_title,hosting,nameservers,domain_age,note,dns,ptr,prefix,open_ports,abuse_contact,domain_status,urlscansourcemanual,rdap,crtsh,urlscan,lookyloo,netcraft,vt,abuseipdb,shodan,censys,triage,phishreport,doh,ripestat,certspotter,internetdb
Request
curl -s -X POST "$API/cases/PH-2026-00012/enrich" \
-H "Authorization: Bearer $PHISHHUNT_KEY" -H "content-type: application/json" \
-d '{
"type": "registrar",
"value": "Example Registrar, LLC (IANA 9999)",
"source": "rdap",
"confidence": "high"
}'
Response — 201
{ "enrichment_id": "01JB…", "points_pending": 8, "merge": null }
Points stay pending until the finding has stood for 72 hours without being contradicted. A kit_hash may merge the case with others on the same domain that share it (cases on other domains are only linked, as a campaign): merge then names the case that remains (survivor) and how many were merged. A landing_url moves the case only when the case is a link shortener's (bit.ly and the like) and the page it lands on is not a known-legitimate site; otherwise it is kept as evidence and landing_note says why.
Errors you may see
400 validation_failed— an unknowntypeorsource, an emptyvalue, apagethat is not one of this case's, or a case that is rejected or expired.
POST /v1/cases/{id}/lookups — run the platform's lookups
What the case page's lookups do, run by the platform: domain RDAP (the registration date that counts for the evidence checklist), DNS through the platform's resolver (never the phishing host), the keyless block checks, and — with your urlscan key, passed through for this request and never stored — the latest urlscan scan of the URL imported with its screenshot. When urlscan has no scan, a new unlisted one starts: call again in about a minute to import it. Findings you post with enrich are kept too, but only these fill the checklist exactly as the case page does.
| Field | Type | Required? | What to put |
|---|---|---|---|
urlscan_key | string | optional | Your urlscan key, for the scan and its screenshot |
block_checks | boolean | optional | false to skip the block checks |
scan | boolean | optional | false: never start a new urlscan scan |
Response — 200
{ "rdap": { "found": true, "added": 4, "registered_at": "2026-10-02", "registrar": "…" },
"dns": { "added": 3, "skipped": 0 },
"urlscan": { "imported": "0198…", "state": "ok", "screenshot": true, "added": 9 },
"block_checks": { "checked": 7 },
"checklist": { "ready": true, "done": 5, "needed": 5, "missing": [] },
"note": "The evidence checklist is complete: the hourly AI validation will judge this case." }
Each step reports on its own: one that fails says so in its place ({ "error": "…" }) and the others still run. No points for lookups; an imported urlscan scan earns what one imported on the case page does.
POST /v1/cases/{id}/capture — attach a capture
Link a capture of the page that someone else's sandbox made. PhishHunt stores the link, never the page.
| Field | Type | Required? | What to put |
|---|---|---|---|
kind | string | required | urlscan, lookyloo or har_external |
permalink | string | required | An https link. For urlscan, on urlscan.io; for lookyloo, on lookyloo.circl.lu; for har_external, where you keep the encrypted archive. Never on the phishing domain. |
archive_format | string | sometimes | har_external only: 7z-aes256 or zip-aes256 |
archive_sha256 | string | sometimes | har_external only: the hex SHA-256 of the encrypted archive. The archive itself is never uploaded. |
page | string | optional | As for findings: one of the site's other URLs |
Request
curl -s -X POST "$API/cases/PH-2026-00012/capture" \
-H "Authorization: Bearer $PHISHHUNT_KEY" -H "content-type: application/json" \
-d '{
"kind": "lookyloo",
"permalink": "https://lookyloo.circl.lu/tree/2b7c…"
}'
Response — 201
{ "capture_id": "01JB…", "archive_password": null, "points_pending": 15 }
Only Lookyloo captures earn points here, and only your first capture of each URL (case, or URL of a site's case): a later capture of the same URL is kept but earns nothing, and the response says "repeat": true with points_pending: 0. A first capture's 15 points confirm when Lookyloo has the finished capture — at once if it already has (points_confirmed), else checked hourly. For har_external, archive_password is a password PhishHunt generates and shows to members on the case's capture list.
POST /v1/cases/{id}/poster — who posted it
Say which social media account posted a URL of a case you submitted or sighted. Cases from the same account are linked on the Related tab and in campaigns, and the account is listed in /v1/posters. It changes only the account on your how-it-was-found entry for that URL; with no entry yet, it starts one (found on social media). No points. An account can be a victim's, taken over: name only what the platform shows publicly.
| Field | Type | Required? | What to put |
|---|---|---|---|
account | string | required | The username, with or without the @ (letters, digits, dots, dashes, underscores; stored lowercased), or a link to the profile or one of its posts. Empty clears it. |
platform | string | sometimes | threads, facebook, instagram, tiktok, x, telegram or youtube. Not needed with a link, which names it. |
url | string | optional | Which URL of the site, as submitted. Default: the case's first. |
Request
curl -s -X POST "$API/cases/PH-2026-00012/poster" \
-H "Authorization: Bearer $PHISHHUNT_KEY" -H "content-type: application/json" \
-d '{"account": "https://www.threads.com/@hadiah.raya/post/C9xYz"}'
Response
{"case_id": "PH-2026-00012", "id": "01J…", "url_sha256": "…",
"poster": {"platform": "threads", "platform_name": "Threads", "handle": "hadiah.raya", "label": "Threads @hadiah.raya",
"key": "threads:hadiah.raya", "profile_url": "https://www.threads.com/@hadiah.raya"}}
POST /v1/cases/{id}/tags — add tags
| Field | Type | Required? | What to put |
|---|---|---|---|
tags | array of strings | required | Up to 20 tags per request, as namespace:value, for example lure:parcel-redelivery or evasion:mobile-only. Tags outside PhishHunt's vocabulary are kept as free-form tags, lower-cased to a-z 0-9 : _ -. |
Request and response — 201
curl -s -X POST "$API/cases/PH-2026-00012/tags" \
-H "Authorization: Bearer $PHISHHUNT_KEY" -H "content-type: application/json" \
-d '{"tags": ["lure:parcel-redelivery", "evasion:mobile-only"]}'
{ "added": ["lure:parcel-redelivery", "evasion:mobile-only"], "effects": ["…"] }
added lists the tags that were new on the case; a tag already there is skipped. effects says what a tag changed: evasion:* tags change how PhishHunt checks whether the site is live.
9. Votes
POST /v1/cases/{id}/validate — vote on a case
| Field | Type | Required? | What to put |
|---|---|---|---|
verdict | string | required | malicious (harmful and in scope), out_of_scope, benign (a genuine site) or unsure |
kind | string | optional | With malicious: phishing (the default), scam (a fraud site that poses as no one) or compromised (a real site that was hacked) |
reason | string | sometimes | Needed with out_of_scope: gambling, adult, piracy, chat_account, spam or other |
note | string | sometimes | Why it is out of scope, at most 200 characters, no links. Needed with other |
Request and response — 201
curl -s -X POST "$API/cases/PH-2026-00012/validate" \
-H "Authorization: Bearer $PHISHHUNT_KEY" -H "content-type: application/json" \
-d '{"verdict": "malicious"}'
{ "weight": 1.5, "state": "validating" }
Votes are weighted by rank: weight is the case's running total, state its state after your vote. out_of_scope counts against the case like benign. A case is validated at +3, taking the kind its votes named most; at −3 it closes as out of scope when those votes weigh at least as much as the benign ones, otherwise it is rejected. Two members voting malicious with nobody voting benign or out_of_scope also validate it, 3 hours after the second vote, whatever their ranks; a trusted submitter's case validates at +1.5 with nobody disagreeing. When the AI has validated a case, one vote that agrees with it is enough, and with no vote against it the case is validated 6 hours later. For 7 days after an AI-validated case is validated, members may still vote on it; at −3 it is rejected. Only phishing cases go into the public feed and /v1/feeds/live.csv.
Errors you may see
403 self_validation_forbidden— you submitted the case.409 conflict— you already voted on it. One vote per case.400 validation_failed— an unknown verdict, or the vote has closed (the case is no longer submitted or validating, and not in the 7 days after the AI's validation was confirmed).
10. Reports
Reporting opens once a case is validated by members, or by the AI on complete evidence: check reportable on the case. PhishHunt sends nothing on your behalf through this API. The flow is:
- List the parties to report to, best first.
- Send the report yourself: by email from your own mailbox, or on the party's web form.
- Record it in PhishHunt.
- For an email report, add the ticket reference when the party replies. That confirms its points.
GET /v1/cases/{id}/report/parties — where to report
An array, best first. Each party has:
| Field | Meaning |
|---|---|
party | The id to send when you record the report, for example mycert |
label, why | Its name, and why it is worth reporting to for this case |
channel | mailto (an email) or link (a web form) |
to, mailto | Email parties: the address, and a ready draft (subject, body, and a href that opens your mail app) |
url, kit | Web-form parties: the form's address, and its fields in order with the values to paste |
done | Why it is lower down, when it is (for example, already reported or already blocking) |
POST /v1/cases/{id}/report — record a report you sent
| Field | Type | Required? | What to put |
|---|---|---|---|
party | string | required | Who you reported to (the party from the list above) |
channel | string | required | mailto if you emailed them, link if you used their web form |
reference | string | optional | Email reports only: the ticket reference, if you already have it (4–80 characters). Saves a call to confirm. |
party- Web forms:
cloudflare,netcraft,urlscan,phishtank,microsoft,spamhaus,google_safe_browsing,phishdestroy. Email:mycert,nc4,apwg,registrar,hosting,brand. A party's name as the case page shows it (“MyCERT Cyber999”, “Google Safe Browsing”) is accepted too.
Request
curl -s -X POST "$API/cases/PH-2026-00012/report" \
-H "Authorization: Bearer $PHISHHUNT_KEY" -H "content-type: application/json" \
-d '{"party": "mycert", "channel": "mailto"}'
Response — 201
{ "report_id": "01JB…", "state": "reported", "points_pending": 12 }
Keep report_id: you need it to confirm. A web-form report (link) is confirmed on your word at once; an email report (mailto) waits for its ticket reference.
Errors you may see
400 validation_failed— an unknown party or channel, or the case cannot be reported yet.409 conflict— you already reported this case to that party. One report per member, party and case.
POST /v1/reports/batch — one report for many cases
“I sent it” for up to 50 cases at once, to one party: each case is recorded as report would, and each says whether it was (state is the case's state afterwards).
curl -s -X POST "$API/reports/batch" \
-H "Authorization: Bearer $PHISHHUNT_KEY" -H "content-type: application/json" \
-d '{ "case_ids": ["PH-2026-00012", "PH-2026-00013"], "party": "mycert", "channel": "mailto" }'
{ "party": "mycert", "recorded": 1, "results": [
{ "case_id": "PH-2026-00012", "ok": true, "state": "reported" },
{ "case_id": "PH-2026-00013", "ok": false, "error": "you already reported this case to that party" } ] }
POST /v1/reports/{id}/confirm — add the ticket reference
{id} is the report_id you got when you recorded the report.
| Field | Type | Required? | What to put |
|---|---|---|---|
reference | string | required | The ticket or case number from the party's reply, 4–80 characters |
Request and response — 200
curl -s -X POST "$API/reports/01JB…/confirm" \
-H "Authorization: Bearer $PHISHHUNT_KEY" -H "content-type: application/json" \
-d '{"reference": "CYBER999-2026-123456"}'
{ "state": "confirmed", "points_pending": 0, "points_confirmed": 12 }
Errors you may see
409 reference_not_unique— that reference already confirmed another report to the same party.403 forbidden— it is someone else's report.404 not_found— no such report.
11. Recheck and write-ups
POST /v1/cases/{id}/recheck — recheck liveness
Ask PhishHunt to check again whether the site is up, and optionally say what you saw yourself. Refused for PAP:RED and do-not-probe cases. Never earns points.
| Field | Type | Required? | What to put |
|---|---|---|---|
verdict | string | optional | What you observed: live, changed, dead or unknown |
detail | string | optional | A short note, for example “404 since this morning” |
Response — 202
{ "accepted": true, "transition": "none", "points_awarded_for_click": 0 }
POST /v1/cases/{id}/writeup — link a write-up
Link an analysis you published about the case. An admin reviews it before it is featured or earns points.
| Field | Type | Required? | What to put |
|---|---|---|---|
url | string | required | Where it is published (https) |
title | string | required | Up to 200 characters |
abstract | string | required | A summary, up to 1,000 characters |
platform | string | optional | Where it is published, for example “Medium” |
names_individual | boolean | optional | true if it names a living person |
public_record_ref | string | sometimes | Needed when names_individual is true: the public record that names them (a court filing, a press release). Without it the write-up is never featured. |
Response — 201
{ "writeup_id": "01JB…", "review_state": "pending" }
12. Campaigns, stats, profiles, feed
All of these are GET requests with no body.
- GET
/v1/me - Your
handle,rank,track(human or automated, from the key's kind),key_prefixand pointsbalance. A good first call to check a key works.noticeis the latest announcement for API and MCP users (title, body, start), ornull— the MCP server adds the same to its instructions. - GET
/v1/me/submissions - Every URL you submitted, newest first, whoever's case it is on now. Each item has
recorded_as,url_defanged,case_id,case_state,case_kind,tlp,vector,channelandsubmitted_at.recorded_asisfirst_submission(the first URL of a case you started),page(a URL you added to a site's case, including your own case folded into another site's) orsighting(a URL already on PhishHunt). A sighting recorded before 20 October 2026 hasurl_defanged: null: only its case was kept then. Filters:recorded_as,state,since(epoch seconds),limit(up to 100, default 50); passnext_cursorback ascursorfor the next page.GET /v1/cases?submitter=lists only the cases you started. - GET
/v1/campaignsand/v1/campaigns/{id} - Campaigns (
cp-…) and suspected clusters (cl-…) of cases that share infrastructure. Filters:confidence(confirmed,suspected,possible),alias,sector,vector,live=1. One campaign lists its cases and why each is linked. Rebuilt hourly. A grouping by shared infrastructure, not an attribution claim. - GET
/v1/posters - The social media accounts members said posted phishing URLs, latest first (up to 200):
label,platform,handle,profile_url,urls,cases,members(how many named it),vectors(URLs per vector),first_seen,last_seen, andposted— the latest 25 URLs (defanged), each withcase_id,state,vectorand theclusterit is in. Filters:platform,vector(e.g.vector=qrfor the accounts that posted QR codes — then only those URLs),q(part of the username),account(platform:username). An account can be a victim's, taken over. - GET
/v1/stats/{metric} {metric}is one ofheadline,weekly,brands,sectors,vectors,registrars,asns,as_holders,kits,survival,tags. Rebuilt hourly.- GET
/v1/hunters/{handle} - A member's profile as members see it in the app: rank, points, cases found, confirmed reports and badges. The real name appears only if that member chose to show it.
- GET
/v1/bounties - Current and past bounties, newest first: name, theme, scope rules, start and end, prize, and the sponsor with its independence statement.
- GET
/v1/feeds/live.csv - CSV with the columns
case_id,url,url_sha256,state,target_sector,vector,first_seen: one row per live URL of every validated phishing case, newest first. Live, not defanged, TLP:GREEN: read section 4 before using it.
13. Points per action
What each action earns, on a user key (human track) and a bot key (automated track). Pending points confirm when the condition is met.
| Action | Reason code | User key | Bot key | Confirmed when |
|---|---|---|---|---|
| Submit a new case | submission_first | 15 | 3 | At once — taken back if the case expires unvalidated after 7 days. A URL whose domain does not resolve when submitted goes on the watchlist with no points, and earns them if it comes alive within 30 days. |
| Submit a new URL of a known site | submission_page | 5 | 1 | At once (at most 10 URLs per member per case) |
| Sighting from a new vector | sighting_new_vector | 3 | 0 | At once |
| Vote | validation | 3 | 0 | When the vote closes |
| Add a finding | enrichment | 8 | 4 | After 72 hours uncontradicted |
| Attach a Lookyloo capture (your first of each URL) | capture_lookyloo | 15 | 0 | When the permalink resolves |
| Report by email | report_mailto | 12 | 0 | With the ticket reference |
| Report on a web form | report_link | 6 | 0 | At once, on your word |
A case that is later rejected reverses the points for submitting it, and its submitter loses 20 more (false_positive). A case closed out of scope (gambling, porn, a chat account and so on) reverses them too, but costs only 2 more (out_of_scope).
14. Errors
Every error is JSON: {"error": "code", "message": "what went wrong"}. The message is written for people: log it.
| HTTP | error | Meaning | What to do |
|---|---|---|---|
| 400 | validation_failed | A bad or missing field, malformed JSON, or the case is not in a state that allows this yet | Read message, fix the request |
| 401 | unauthorized | A missing, wrong or revoked key, or a bot key still waiting for approval | Check the Authorization header |
| 403 | forbidden, self_validation_forbidden | Not allowed: for example a recheck on a PAP:RED case, or a vote on your own case | Do not retry |
| 404 | not_found | No such case, report, route, metric or member | Check the id |
| 409 | conflict | Already done: one vote and one report per party each | Nothing more needed |
| 409 | reference_not_unique | That ticket reference is already on another report | Check the reference |
| 409 | warninglist_confirm | The URL is on a known-legitimate domain | Resubmit with warning_reason |
| 422 | warninglist_block | The URL is a genuine site's front page, not a phishing page | Do not resubmit |
| 429 | rate_limited | Over a limit | Wait for Retry-After seconds |
| 503 | read_only | Writes are paused; reads still work | Retry writes later |
15. MCP server
The Model Context Protocol lets an AI assistant call PhishHunt as a set of tools, so you can ask “is this link in PhishHunt?” or “submit this SMS link and tag it as a parcel lure” in your own words. It acts as you, with your key, under the same rules and limits as the REST API.
- Endpoint:
https://mcp.phishhunt.rectifyq.com/mcp - Transport: Streamable HTTP (JSON-RPC 2.0 over
POST; replies are plain JSON), protocol2025-03-26. - Sign-in: the same
Authorization: Bearerkey header.
Claude Code
Put your key in an environment variable, then add the server:
claude mcp add --transport http phishhunt https://mcp.phishhunt.rectifyq.com/mcp \
--header "Authorization: Bearer $PHISHHUNT_KEY"
Or share it with a project in .mcp.json, without the key itself. Each person sets PHISHHUNT_KEY in their own environment:
{
"mcpServers": {
"phishhunt": {
"type": "http",
"url": "https://mcp.phishhunt.rectifyq.com/mcp",
"headers": { "Authorization": "Bearer ${PHISHHUNT_KEY}" }
}
}
}
Other MCP clients
Any client that supports remote (HTTP) MCP servers with a custom header works: give it the endpoint above and the header Authorization: Bearer <your key>. Use a user key for an assistant you drive yourself.
Test it by hand
curl -s https://mcp.phishhunt.rectifyq.com/mcp -H "Authorization: Bearer $PHISHHUNT_KEY" \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
curl -s https://mcp.phishhunt.rectifyq.com/mcp -H "Authorization: Bearer $PHISHHUNT_KEY" \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_case","arguments":{"case_id":"PH-2026-00012"}}}'
A tool's answer is JSON text inside result.content[0].text: {"provenance": {…, "tlp": "tlp:green"}, "result": …}. When a tool fails, result.isError is true and the text holds {"error", "message"}, using the same codes as the REST API.
16. MCP tools
Arguments use the same names and values as the REST fields above. Required arguments are marked *.
| Tool | Arguments | What it does |
|---|---|---|
| Read only | ||
get_case | case_id* | One case by id, defanged |
search_cases | q, state, sector, alias, tag, campaign, since, cursor | Search and list cases, as GET /v1/cases |
find_related | case_id* | Cases sharing the domain, kit hash or path pattern, or posted by the same social media account |
list_posters | platform, vector, q, account | Accounts that posted phishing, as /v1/posters |
list_campaigns | confidence, alias, sector, vector, live (true/false) | Campaigns and suspected clusters |
get_campaign | campaign_id* | One campaign or cluster, and why its cases are linked |
brand_stats | metric* | Statistics, as /v1/stats |
hunter_profile | handle* | A member's profile, as members see it |
my_submissions | recorded_as, state, since, cursor, limit | Every URL you submitted, as /v1/me/submissions |
defang_iocs | items* (array of strings) | Defang a list of URLs, hosts or emails |
| Change data (count as writes, earn points) | ||
submit_url | url*, vector, target_hint, tags, warning_reason, posted_by | Submit a URL, as POST /v1/cases. A URL on a known-legitimate domain answers warninglist_confirm: call again with warning_reason. |
run_lookups | case_id*, urlscan_key, block_checks, scan | Run the platform's own lookups, as lookups — what fills the evidence checklist |
enrich_case | case_id*, type*, value*, source*, field, confidence | Add a finding, as enrich |
attach_capture | case_id*, kind*, permalink*, archive_format, archive_sha256 | Attach a capture, as capture |
set_poster | case_id*, account*, platform, url | Say who posted it, as poster (no points) |
tag_case | case_id*, tags* | Add tags. evasion:* tags change how PhishHunt checks liveness. |
file_report | case_id*, party*, channel*, reference | Record a report, as report; for email parties it also returns the draft to send from your own mail client |
file_reports | case_ids*, party*, channel* | One report for up to 50 cases, as batch |
* required. Your assistant should ask you before using a tool that changes data.
17. Good practice
- One key per integration, labelled, so you know which one to replace.
- Keep keys in a secrets manager or environment variables, never in code, tickets, chats or a shared
.mcp.json. If one leaks, revoke at once. - Submit links as received; PhishHunt canonicalises and deduplicates them. Resubmitting a known link is fine: it records a sighting.
- Back off on
429usingRetry-After, and poll lists withsinceinstead of re-reading everything. - Use bot keys for anything unattended, and user keys for what you drive yourself.