Statistics at the end of your bulk search
The second notification route available is called each time an entire bulk search is done.
It will provide you with all the useful information about your file, such as the number of found emails.
- This is a POST request
- You need to respond with a HTTP status code of 200.
- If you need a custom URL per request, please refer to the single search documentation or the bulk search documentation depending on your needs.
- You can include the results of your bulk search directly in this webhook. Please see the custom object described here
Here is an example of the request body:
{
"signature": "#EXAMPLE-SIGNATURE#",
"timestamp": "2023-03-01T04:40:20Z",
"data": {
"file": "#FILEID#",
"total": 2500,
"done": 2500,
"found": 2200,
"aborted": 0,
"insufficientCredits": 0,
"certainties": {
"verySure": 800,
"sure": 1000,
"probable": 400,
"undeliverable": 0
}
}
}
And here is the explanation of each item that you will find in the body:
If you need information about the meaning of the certainties, please see here
The HMAC-SHA1 signature of the request
The timestamp used to compute the signature
The file's information
The unique ID of the file that was being processed.
Total number of valid rows in your file
Number of rows that were already searched in your file
Number of found emails in your file
Number of aborted rows in your file
Number of aborted rows caused by a lack of credits in your file
Certainties' statistics for your bulk search
Count of currently processed rows classified as 'very_sure'
Count of currently processed rows classified as 'sure'
Count of currently processed rows classified as 'probable'
Count of currently processed rows classified as 'undeliverable' (only used for email verification)
Results of the bulk if you have specified the 'includeResultsInWebhook' option in the custom object when launching your bulk
Name of the search ('__icypeas__individual' if it is a single search).
User ID of the user linked to this search.
File id when it is a bulk search
Object containing the results of your search.
First name found during the search, if any.
Last name found during the search, if any.
Concatenation of the user's first and last names, if any.
Array of the found email addresses.
Email address found during the search.
Degree of certainty for the validity of this email address. For a list of certainties, please see Useful information > Certainties
MX provider for the email. For a list of providers, please see Useful information > MX providers
Array of MX records. Those are strings
Currently empty.
Currently empty.
If in bulk search mode, it is the row of the file it was in.
Status of this search.
Information concerning the search.
ISO String Date representing the creation date of the search.
ISO String Date representing the last modification date of the search.
Custom data that were passed when running either the bulk search or the single search
Custom webhook URL that will be called for this search (the field is empty if no URL has been passed when running the single/bulk search)
Custom id provided by the user (the field is empty if not custom id was passed when running the single/bulk search)
ID of the search.
Signature verification
You can verify the signature sent in the request, here is simple way to do so. This is useful if you want to validate that Icypeas is indeed calling your route and not anyone else.