There are two ways to add domains to Lookalike detection
Bulk API: https://api-doc.emailconsul.com/post-lookalike-add-bulk
Import CSV: https://api-doc.emailconsul.com/post-lookalike-import
CSV must contain a "domain" column.
All of these methods are upserting your domains, which means that if a domain is already added, it will not be added again, preventing duplication.
Right after a domain is added, EmailConsul starts searching for all potential lookalike domains. The first results will appear after a couple of minutes, if any exist.
To get a list of added domains, use the API https://api-doc.emailconsul.com/get-lookalike.
To delete a bunch of domains, use the API https://api-doc.emailconsul.com/delete-lookalike. With this API, you can delete domains that satisfy a filter from the passed parameters. Without parameters (filters), it removes all domains.
There are two ways to delete a domain:
By ID with https://api-doc.emailconsul.com/delete-lookalike-by-id
By using the Delete Domains API (https://api-doc.emailconsul.com/delete-lookalike)
To delete a specific domain, use the Delete Domains API with the filter by domain, like
, where we send a request to delete example.com domain.
Use https://api-doc.emailconsul.com/get-lookalike-available-count to see how many domains can be added within the current Usage Plan.
To get the list of found lookalikes related to a domain, use the API https://api-doc.emailconsul.com/get-lookalike-lookalikes-by-id. Apply filters if needed.
Response item description:
To change a lookalike state , use the API https://api-doc.emailconsul.com/post-lookalike-lookalikes-change-state.
Available state options:
UNCLASSIFIED, THREAT, IGNORED