Private Lookup API
Check identifiers against our threat data without revealing them, using only the first characters of their SHA-256 hash.
POST
https://www.tekushi.com/api/v1/threats/lookup/private
01How it works
1. HashOn your side, hash the identifier with SHA-256 after trimming spaces and lowercasing it.
2. SendSend only the first 5 characters of the hash.
3. MatchWe return every threat whose hash starts with them. Look for your full hash in
identifier_sha256.Your identifier never leaves your system, and we cannot tell which threat you were checking, or whether it was a threat at all.
This makes it the right choice for confidential data, such as your users' links, emails or phone numbers. It is less efficient in credits than the standard lookup: every live threat sharing the prefix is unlocked, at half its credits, not only the one you were looking for. Unlocked threats stay free across all products, so repeated checks cost less over time.
02Authenticate
Authenticate requests with your key in the Authorization: Bearer header.
03Request
prefixThe first 5 characters of the hash, e.g.
fdb35. Down to 3 characters: shorter prefixes return more threats, more private but more credits.max_creditsOptional. The most credits the call may spend; above it, the call returns 402 and nothing is charged.
Without enough credits the call returns 402 and nothing is charged.
HASH=$(printf '%s' "CVE-2026-1192" | tr '[:upper:]' '[:lower:]' \
| shasum -a 256 | cut -d' ' -f1)
curl -X POST "https://www.tekushi.com/api/v1/threats/lookup/private" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{\"prefix\": \"${HASH:0:5}\", \"max_credits\": 50}"
# Then look for $HASH in the identifier_sha256 values of the response
04Response
200 Threats sharing the prefix
{
"status": "success",
"prefix": "fdb35",
"count": 1,
"unlocked": 1,
"credits_spent": 3,
"credits_remaining": 1197,
"data": [
{
"id": 8412,
"identifier_sha256": "fdb3552fa37d9335a906eaef2c2590de950e9efb0945f9fd67ade28688628509",
"entity": "BadActor_X",
"identifier": "CVE-2026-1192",
"risk": "cyber_attack",
"exploit": "remote_code_execution",
"live": 1,
"score": 9.4,
"credits": 5,
"updated": "2026-11-04T12:00:00"
}
]
}
200 No threat with this prefix
{
"status": "success",
"prefix": "0a1b2",
"count": 0,
"unlocked": 0,
"credits_spent": 0,
"credits_remaining": 1200,
"data": []
}
402 Above max_credits
{
"error": "Cost exceeds max_credits",
"code": "max_credits_exceeded",
"credits_required": 64,
"max_credits": 50,
"credits_remaining": 1200
}
402 Not enough credits
{
"error": "Insufficient credits",
"code": "insufficient_credits",
"credits_required": 12,
"credits_remaining": 4,
"credits_url": "https://www.tekushi.com/credits"
}