{"components":{"schemas":{"CreditError":{"allOf":[{"$ref":"#/components/schemas/Error"}],"properties":{"credits_remaining":{"type":"integer"},"credits_required":{"type":"integer"},"credits_url":{"format":"uri","type":"string"},"max_credits":{"type":"integer"}}},"CreditsResponse":{"properties":{"credits_remaining":{"type":"integer"},"credits_url":{"format":"uri","type":"string"},"organization":{"description":"Organization whose pooled credits you use, if any.","type":["string","null"]},"status":{"const":"success","type":"string"}},"type":"object"},"DatasetsResponse":{"properties":{"count":{"type":"integer"},"data":{"items":{"properties":{"feed_filter":{"description":"Query parameters for listThreats.","type":"object"},"field":{"enum":["risk","entity"],"type":"string"},"threats":{"type":"integer"},"updated":{"format":"date-time","type":["string","null"]},"url":{"format":"uri","type":"string"},"value":{"type":"string"}},"type":"object"},"type":"array"},"status":{"const":"success","type":"string"}},"type":"object"},"Error":{"properties":{"code":{"description":"Stable code to branch on.","enum":["missing_api_key","invalid_api_key","invalid_status","invalid_filter","missing_filter","forbidden_platform","invalid_payload","invalid_target","invalid_type","invalid_prefix","invalid_max_credits","invalid_limit","invalid_field","insufficient_credits","max_credits_exceeded","not_found","method_not_allowed","server_error"],"type":"string"},"error":{"description":"Human-readable message.","type":"string"}},"required":["error","code"],"type":"object"},"FeedResponse":{"properties":{"count":{"description":"Number of threats returned.","type":"integer"},"credits_remaining":{"type":"integer"},"credits_spent":{"type":"integer"},"data":{"items":{"$ref":"#/components/schemas/Threat"},"type":"array"},"dataset":{"enum":["available","live"],"type":"string"},"filters":{"items":{"properties":{"field":{"type":"string"},"op":{"type":"string"},"value":{}},"type":"object"},"type":"array"},"status":{"const":"success","type":"string"},"unlocked":{"description":"Live threats unlocked (and charged) by this call.","type":"integer"}},"type":"object"},"LookupNotFound":{"properties":{"count":{"const":0,"type":"integer"},"data":{"maxItems":0,"type":"array"},"exists":{"const":false,"type":"boolean"},"query":{"type":"object"},"status":{"const":"not_found","type":"string"}},"type":"object"},"LookupRequest":{"properties":{"max_credits":{"description":"Most credits the call may spend. Above it the call returns 402 (`max_credits_exceeded`) and charges nothing.","minimum":0,"type":"integer"},"target":{"description":"The value to look up.","examples":["CVE-2026-1192"],"type":"string"},"type":{"default":"identifier","enum":["identifier","entity"],"type":"string"}},"required":["target"],"type":"object"},"LookupResponse":{"properties":{"count":{"description":"Number of threats returned.","type":"integer"},"credits_remaining":{"type":"integer"},"credits_spent":{"type":"integer"},"data":{"items":{"allOf":[{"$ref":"#/components/schemas/Threat"}],"properties":{"id":{"type":"integer"},"unlocked":{"const":1,"type":"integer"}}},"type":"array"},"exists":{"const":true,"type":"boolean"},"query":{"properties":{"type":{"type":"string"},"value":{"type":"string"}},"type":"object"},"status":{"const":"success","type":"string"},"unlocked":{"description":"Live threats unlocked (and charged) by this call.","type":"integer"}},"type":"object"},"PrivateLookupRequest":{"properties":{"max_credits":{"description":"Most credits the call may spend. Above it the call returns 402 (`max_credits_exceeded`) and charges nothing.","minimum":0,"type":"integer"},"prefix":{"description":"First 5 hex characters of the SHA-256 hash of the trimmed, lowercased identifier. Down to 3: shorter returns more threats, more private but more credits.","examples":["fdb35"],"pattern":"^[0-9a-fA-F]{3,5}$","type":"string"}},"required":["prefix"],"type":"object"},"PrivateLookupResponse":{"properties":{"count":{"description":"Number of threats returned.","type":"integer"},"credits_remaining":{"type":"integer"},"credits_spent":{"type":"integer"},"data":{"items":{"allOf":[{"$ref":"#/components/schemas/Threat"}],"properties":{"id":{"type":"integer"},"identifier_sha256":{"description":"Compare with your full hash.","type":"string"}}},"type":"array"},"prefix":{"type":"string"},"status":{"const":"success","type":"string"},"unlocked":{"description":"Live threats unlocked (and charged) by this call.","type":"integer"}},"type":"object"},"Threat":{"properties":{"credits":{"description":"Base value used to price the threat's unlock.","type":["integer","null"]},"entity":{"description":"Type of threat.","type":["string","null"]},"exploit":{"type":["string","null"]},"identifier":{"description":"Unique key to identify the threat.","type":["string","null"]},"live":{"description":"1 if the threat is still live, 0 if neutralized.","type":["integer","null"]},"risk":{"description":"Classification of threat.","type":["string","null"]},"score":{"description":"Assessment of the threat, if more than .5 it is considered a serious threat.","type":["number","null"]},"updated":{"format":"date-time","type":["string","null"]}},"type":"object"}},"securitySchemes":{"bearerAuth":{"description":"Your API key, from https://www.tekushi.com/api/key","scheme":"bearer","type":"http"}}},"externalDocs":{"description":"API documentation","url":"https://www.tekushi.com/api"},"info":{"contact":{"email":"support@tekushi.com","name":"Tekushi support","url":"https://www.tekushi.com/contact"},"description":"Retrieve online threats with your own filters (feed), check identifiers against them (lookup), or check them without revealing them (private lookup).\n\nAuthenticate with your API key as a Bearer token: https://www.tekushi.com/api/key\n\n## Credits\n\nNeutralized threats are free. A live threat you have not unlocked yet is unlocked with credits the first time a call returns it, and stays free afterwards across all products (for you and your organization). Prices are taken from each threat's `credits` value: half for a single threat (lookup by identifier, private lookup), a tenth per threat for a dataset (feed, lookup by entity), the full amount on your organization's own platform. A call never spends more than your balance or its `max_credits`: it returns 402 and charges nothing. Every authenticated response carries an `X-Credits-Remaining` header.","summary":"Real-time intelligence on online threats.","termsOfService":"https://www.tekushi.com/terms-of-use","title":"Tekushi API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/credits":{"get":{"description":"Credits are pooled per organization. Buy more: https://www.tekushi.com/credits","operationId":"getCredits","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditsResponse"}}},"description":"Your balance.","headers":{"X-Credits-Remaining":{"description":"Credits left after the call.","schema":{"type":"integer"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid API key."}},"summary":"Get your remaining credits","tags":["Account"]}},"/datasets":{"get":{"description":"Public datasets by risk and by entity, with their size. Free, no key needed. Use `feed_filter` with listThreats to retrieve a dataset's threats.","operationId":"listDatasets","parameters":[{"in":"query","name":"field","required":false,"schema":{"enum":["risk","entity"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetsResponse"}}},"description":"Public datasets, largest first within each field."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid field."}},"security":[],"summary":"List the public threat datasets","tags":["Datasets"]}},"/threats/lookup":{"post":{"description":"Returns every threat whose identifier (or entity) equals the target. Locked live threats are unlocked: half their credits for an identifier, a tenth for an entity.","operationId":"lookupThreat","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupResponse"}}},"description":"Match found.","headers":{"X-Credits-Remaining":{"description":"Credits left after the call.","schema":{"type":"integer"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditError"}}},"description":"Not enough credits, or cost above max_credits. Nothing was charged."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupNotFound"}}},"description":"No threat matches the target. Nothing is charged."}},"summary":"Look up an identifier or entity","tags":["Threats"]}},"/threats/lookup/private":{"post":{"description":"Send the first 5 characters of `sha256(identifier.strip().lower())` (hex). Every threat whose hash starts with them is returned with its full `identifier_sha256`: compare it with your full hash locally. Tekushi never learns which threat you checked. Every locked live threat in the group is unlocked at half its credits, so this costs more than a standard lookup.\n\nGuide: https://www.tekushi.com/api/lookup/private","operationId":"lookupThreatPrivate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateLookupRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateLookupResponse"}}},"description":"Threats sharing the prefix (possibly none).","headers":{"X-Credits-Remaining":{"description":"Credits left after the call.","schema":{"type":"integer"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditError"}}},"description":"Not enough credits, or cost above max_credits. Nothing was charged."}},"summary":"Look up an identifier without revealing it (k-anonymity)","tags":["Threats"]}},"/threats/{status}":{"get":{"description":"At least one filter is required. Filters on different fields must all match; repeated values of one field match any of them. Locked live threats in the result are unlocked at the dataset price (a tenth of their credits each).\n\nBuild a request interactively: https://www.tekushi.com/api/feed","operationId":"listThreats","parameters":[{"description":"`available`: live and neutralized threats. `live`: live threats only.","in":"path","name":"status","required":true,"schema":{"enum":["available","live"],"type":"string"}},{"description":"risk is this value. Repeat the parameter to match any of several values. Underscores are read as spaces.","explode":true,"in":"query","name":"risk","required":false,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"risk is not this value. Repeatable; all must hold.","explode":true,"in":"query","name":"risk.not","required":false,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"risk is set (not empty).","in":"query","name":"risk.set","required":false,"schema":{"const":true,"type":"boolean"}},{"description":"risk is empty.","in":"query","name":"risk.empty","required":false,"schema":{"const":true,"type":"boolean"}},{"description":"entity is this value. Repeat the parameter to match any of several values. Underscores are read as spaces.","explode":true,"in":"query","name":"entity","required":false,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"entity is not this value. Repeatable; all must hold.","explode":true,"in":"query","name":"entity.not","required":false,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"entity is set (not empty).","in":"query","name":"entity.set","required":false,"schema":{"const":true,"type":"boolean"}},{"description":"entity is empty.","in":"query","name":"entity.empty","required":false,"schema":{"const":true,"type":"boolean"}},{"description":"Your organization's own platform only (403 otherwise). Charged at the platform price.","in":"query","name":"platform","required":false,"schema":{"type":"string"}},{"description":"exploit is this value. Repeat the parameter to match any of several values. Underscores are read as spaces.","explode":true,"in":"query","name":"exploit","required":false,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"exploit is not this value. Repeatable; all must hold.","explode":true,"in":"query","name":"exploit.not","required":false,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"exploit is set (not empty).","in":"query","name":"exploit.set","required":false,"schema":{"const":true,"type":"boolean"}},{"description":"exploit is empty.","in":"query","name":"exploit.empty","required":false,"schema":{"const":true,"type":"boolean"}},{"description":"live is this value. Repeat the parameter to match any of several values.","explode":true,"in":"query","name":"live","required":false,"schema":{"items":{"type":"integer"},"type":"array"},"style":"form"},{"description":"live is not this value. Repeatable; all must hold.","explode":true,"in":"query","name":"live.not","required":false,"schema":{"items":{"type":"integer"},"type":"array"},"style":"form"},{"description":"live is set (not empty).","in":"query","name":"live.set","required":false,"schema":{"const":true,"type":"boolean"}},{"description":"live is empty.","in":"query","name":"live.empty","required":false,"schema":{"const":true,"type":"boolean"}},{"description":"Most credits the call may spend. Above it the call returns 402 (`max_credits_exceeded`) and charges nothing.","in":"query","name":"max_credits","required":false,"schema":{"minimum":0,"type":"integer"}},{"description":"Return (and charge for) only the most recently updated matching threats, newest first. Without it, every match is returned.","in":"query","name":"limit","required":false,"schema":{"maximum":1000,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedResponse"}}},"description":"Matching threats.","headers":{"X-Credits-Remaining":{"description":"Credits left after the call.","schema":{"type":"integer"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditError"}}},"description":"Not enough credits, or cost above max_credits. Nothing was charged."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Platform filter on a platform that is not your organization's."}},"summary":"Retrieve threats matching your filters (Feed API)","tags":["Threats"]}}},"security":[{"bearerAuth":[]}],"servers":[{"url":"https://www.tekushi.com/api/v1"}],"tags":[{"description":"Feed and lookups.","name":"Threats"},{"description":"Public dataset catalogue.","name":"Datasets"},{"description":"Credits.","name":"Account"}]}
