Email Scraper - Fetch
Parameter | Type | Description | Mandatory/Optional |
subject | String | Represents the subject of the email to be searched for. In this case, it is "Credit Card Statement" indicating that the system will search for emails related to a credit card with that name. | Mandatory |
requestId | String/UUID | Represents a unique identifier generated for the user's consent request. This ID is obtained from the "consent" endpoint and is used to link the user's consent authorization with subsequent data retrieval requests. | Mandatory |
date | String | Specifies the time range for email search. "1m" signifies the last month's emails. Options include:
The default is 1m (1 month). | Optional |
sender | Array | Sender email can be passed to filter the output data | Optional |
hasAttachment | Boolean | Indicates whether the emails retrieved should have attachments. If set to "true," the system will only retrieve emails with attachments. If set to "false," emails without attachments will also be included in the search results. | Optional |
keyWordInMailBody | String | Specific keywords can be passed to filter the email | Optional |
dateFrom | String | Date from which the data has to be extracted | Optional |
dateTo | String | Date till which the data has to be extracted | Optional |
data | Object | Object contains personal data that will be used to unlock the password-protected pdfs. | Optional |
data.name | String | Represents the user's name. In this case, it is "John Doe." | Optional |
data.dob | String | Represents the user's date of birth. In this case, it is "02/12/1963". | Optional |
Parameter | Type | Description |
result | Object | Contains the output of the API |
result.emails | Array | List of Emails matching with the given parameters (subject, date, hasAttachment, etc..) |
result.emails[i].from | String | Represents the sender's name and email address. This parameter indicates who sent the email. |
result.emails[i].to | String | Represents the recipient's name and email address. This parameter indicates to whom the email is addressed. |
result.emails[i].subject | String | Represents the subject of the email. This parameter provides a summary or title for the content of the email. |
result.emails[i].date | String | Represents the date and time when the email was sent. This parameter indicates when the email was composed or dispatched. |
result.emails[i].body | String | Represents the main content or body of the email. |
result.emails[i].attachments | Array of Strings | Represents any attachments included with the email. Each attachment is represented by a URL pointing to the location where the attachment can be downloaded or accessed. |