API Documentation
Comprehensive guides and API references for integrating AntiBait's email threat detection into your applications.
IOC Query
PremiumQuery and filter Indicators of Compromise (IOCs) collected from email analyses with advanced filtering and pagination.
API Endpoint
GET/api/iocs/queryQuery Parameters
type?: string
isMalicious?: "true" | "false"
minThreatScore?: number
limit?: number (default: 100)
offset?: number (default: 0)
sortBy?: string (default: "last_seen")
sortOrder?: "asc" | "desc" (default: "desc")All parameters are optional
Response
{
"success": true,
"data": [{
"id": "string",
"ioc_type": "string",
"ioc_value": "string",
"is_malicious": boolean,
"threat_score": number,
"first_seen": "datetime",
"last_seen": "datetime",
"occurrence_count": number,
"metadata": object,
"analysis_count": number
}],
"count": number,
"pagination": {
"limit": number,
"offset": number
}
}IOC Types
emailEmail addresses
domainDomain names
ipIP addresses (IPv4/IPv6)
urlURLs from email body
subjectEmail subject lines
message_idMessage-ID headers
user_agentUser-Agent strings
auth_resultAuthentication results
Example Requests
Get All Malicious Domains
GET /api/iocs/query?type=domain&isMalicious=true&minThreatScore=70
Authorization: Bearer YOUR_API_KEYGet Recent High-Threat IOCs
GET /api/iocs/query?minThreatScore=80&sortBy=last_seen&sortOrder=desc&limit=50
Authorization: Bearer YOUR_API_KEYGet Most Frequent Malicious IPs
GET /api/iocs/query?type=ip&isMalicious=true&sortBy=occurrence_count&sortOrder=desc
Authorization: Bearer YOUR_API_KEYResponse Fields
idstringUnique identifier for the IOC (UUID)
ioc_typestringType of indicator (email, domain, ip, url, etc.)
ioc_valuestringThe actual indicator value
is_maliciousbooleanWhether the IOC is marked as malicious
threat_scorenumberThreat score (0-100, higher is more dangerous)
first_seendatetimeTimestamp when IOC was first observed
last_seendatetimeTimestamp when IOC was last observed
occurrence_countnumberNumber of times this IOC has been observed
metadataobjectAdditional context and metadata about the IOC
analysis_countnumberNumber of distinct analyses where this IOC appeared
Common Use Cases
Export malicious domains and IPs to feed into security tools
Identify repeated IOCs to detect coordinated phishing campaigns
Query historical IOC data for incident response and investigation
This endpoint requires a valid API key. Include your API key in the Authorization header as a Bearer token.
IOCs are automatically collected from all email analyses (basic and advanced). No additional setup required - just analyze emails and query the IOC database.
Need help integrating our API? Our support team is here to assist you.