curl --request POST \
--url https://api.myidvirtual.com/mail/verify \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>"
}
'{
"400": {},
"exists": true,
"message": "<string>"
}Check if an email address is already registered in the system
curl --request POST \
--url https://api.myidvirtual.com/mail/verify \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>"
}
'{
"400": {},
"exists": true,
"message": "<string>"
}curl -X POST "http://localhost:3333/mail/verify" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]"
}'
{
"exists": false,
"message": "Email is available"
}
{
"exists": true,
"message": "Email já cadastrado !"
}
{
"statusCode": 400,
"message": "Email já cadastrado !",
"error": "Bad Request"
}