Email Scraper - Consent
Introduction:
This endpoint provides a link where the user can grant consent for the application to access their Gmail account.
Sample Curl:
curl --location --request POST 'https://api-preproduction.signzy.app/api/v3/email-search/consent' \
--header 'Authorization: <auth-token>' \
--data ''Sample Output:
{
"result": {
"requestId": "1ce18125-7200-439e-bb2e-0d95dd66b52c",
"url": "https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly&state=1ce18125-7200-439e-bb2e-0d95dd66b52c&response_type=code&client_id=510491745373-484ns0gefm2787amtjd06p7l5foi23je.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fapi.signzy.app%2Fapi%2Fv3%2Finternals%2Femail-callback"
}
}Output Parameters:
Parameter | Type | Description |
|---|---|---|
result | Object | Contains the output of the API |
result.requestId | String / UUID | Unquie ID associated with each request. It will be used to fetch the data once consent is given |
result.url | String / URL | URL to provide the user's Gmail consent. |

Status Codes:
{
"result": {
"requestId": "1ce18125-7200-439e-bb2e-0d95dd66b52c",
"url": "https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly&state=1ce18125-7200-439e-bb2e-0d95dd66b52c&response_type=code&client_id=510491745373-484ns0gefm2787amtjd06p7l5foi23je.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fapi.signzy.app%2Fapi%2Fv3%2Finternals%2Femail-callback"
}
}