{"openapi":"3.0.3","info":{"title":"SynthMailClean API","version":"0.5.0","description":"Spam sender addresses captured from honeypot mailboxes (Sender List) and a merged domain blocklist. Whitelisted senders and domains never appear; a page can hold fewer rows than limit, so follow next_cursor until it is null. Lookups of whitelisted values answer listed false with whitelisted true."},"servers":[{"url":"https://synthmailclean.synthetixmind.com"}],"security":[{"bearerAuth":[]},{"apiKeyQuery":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API Key in the Authorization header"},"apiKeyQuery":{"type":"apiKey","in":"query","name":"api_key","description":"API Key in the URL, for clients that can only fetch a URL. Treat such a URL like the key itself."}},"schemas":{"Entry":{"type":"object","required":["address","domain","first_seen","last_seen","hit_count"],"properties":{"address":{"type":"string","example":"offers@bulk-deals.example"},"domain":{"type":"string","example":"bulk-deals.example"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"hit_count":{"type":"integer","minimum":1}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"paths":{"/v1/addresses":{"get":{"summary":"List the Sender List (paged, with Delta and filters)","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor of the previous page"},{"name":"since","in":"query","required":false,"description":"Delta: First Seen later than this timestamp","schema":{"type":"string","format":"date-time"}},{"name":"domain","in":"query","schema":{"type":"string"},"description":"Exact Sender Domain"},{"name":"min_hits","in":"query","schema":{"type":"integer","minimum":1}},{"name":"first_seen_from","in":"query","required":false,"description":"First Seen on or after","schema":{"type":"string","format":"date-time"}},{"name":"first_seen_to","in":"query","required":false,"description":"First Seen on or before","schema":{"type":"string","format":"date-time"}},{"name":"format","in":"query","schema":{"type":"string","enum":["json","csv"],"default":"json"}}],"responses":{"200":{"description":"One page of entries","headers":{"X-Next-Cursor":{"schema":{"type":"string"},"description":"CSV only: cursor of the next page"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Entry"}},"next_cursor":{"type":"string","nullable":true}}}},"text/csv":{"schema":{"type":"string"},"example":"address,domain,first_seen,last_seen,hit_count"}}},"400":{"description":"Invalid parameter, or an API Key sent both in the header and in the URL","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"401":{"description":"Missing, invalid, revoked, expired or suspended API Key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"Rate Limit reached","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until the next window"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/v1/domains":{"get":{"summary":"Merged domain blocklist (paged, Delta, or the whole list as text)","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100000,"default":10000}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor of the previous page"},{"name":"since","in":"query","required":false,"description":"Delta: domains first seen after this timestamp","schema":{"type":"string","format":"date-time"}},{"name":"format","in":"query","schema":{"type":"string","enum":["json","csv","txt"],"default":"json"},"description":"txt: whole list, one domain per line, no paging, 6 per hour per key"}],"responses":{"200":{"description":"One page of domains, or the whole list as text","headers":{"X-Total-Domains":{"schema":{"type":"integer"}},"X-Next-Cursor":{"schema":{"type":"string"},"description":"CSV only"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"first_seen":{"type":"string","format":"date-time"}}}},"next_cursor":{"type":"string","nullable":true}}}},"text/csv":{"schema":{"type":"string"},"example":"domain,first_seen"},"text/plain":{"schema":{"type":"string"},"example":"bad-ads.example"}}},"400":{"description":"Invalid parameter, or an API Key sent both in the header and in the URL","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"401":{"description":"Missing, invalid, revoked, expired or suspended API Key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"Rate Limit reached","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until the next window"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/v1/domains/{domain}":{"get":{"summary":"Check one domain and its parent domains against the merged blocklist","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["json","csv"],"default":"json"}}],"responses":{"200":{"description":"listed true with matched domain, first_seen and list names, or listed false","content":{"application/json":{"schema":{"type":"object","properties":{"listed":{"type":"boolean"},"domain":{"type":"string"},"matched":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"lists":{"type":"array","items":{"type":"string"}}}}}}},"400":{"description":"Invalid parameter, or an API Key sent both in the header and in the URL","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"401":{"description":"Missing, invalid, revoked, expired or suspended API Key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"Rate Limit reached","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until the next window"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/v1/addresses/{address}":{"get":{"summary":"Look up one address","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["json","csv"],"default":"json"}}],"responses":{"200":{"description":"listed true with fields, or listed false","headers":{"X-Listed":{"schema":{"type":"string","enum":["true","false"]},"description":"CSV only: whether the address is listed"}},"content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"listed":{"type":"boolean"}}}]}},"text/csv":{"schema":{"type":"string"},"example":"address,domain,first_seen,last_seen,hit_count"}}},"400":{"description":"Invalid parameter, or an API Key sent both in the header and in the URL","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"401":{"description":"Missing, invalid, revoked, expired or suspended API Key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"Rate Limit reached","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until the next window"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}}}