phone +91 8140934414

Most applications still use email address as a way to sign up. Most of the times users try to use dummy/non-existent emails to register. The current way to check if the email id is valid or not, is to send a verification email, prompting the user to click on a confirmation link.

When making BugSkan we had a unique requirement – we needed to validate a person’s email address before processing the account.

We had two major problems:

  1. Sending a verification email and prompting for click on a confirmation link was adding three extra steps in the user opt-in process which was an obstacle.
  2. We didn’t want post-registration verification since the very sight of dummy emails makes our dba pull his hair

So we worked out a solution where we check if an email exists in realtime. This added an additional filter in our user signup process and we generated better prospects.

We got many inquiries from people about how we implemented this functionality. Some wanted to buy the source code.

Hence we have published a public API for the same – using this API you can submit email addresses for verification and you receive a boolean status.

 

Here’s a sample request and response:

For submitting email:

Request (please note that regex validation of email string is not done at API so send well-formatted addresses).

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
  "EmailId": "kaushal@pratikar.com"
}' 'http://bouncezeroapi.azurewebsites.net/api/EmailRequests'

 

Response Body

{
  "Id": 325434,
  "EmailId": "kaushal@pratikar.com",
  "requestip": "117.241.241.130:5/11/2016 8:22:12 PM",
  "status": "Waiting",
  "verified": null
}

For checking status of submitted email:

curl -X GET --header 'Accept: application/json' 'http://bouncezeroapi.azurewebsites.net/api/EmailRequests/325434'

Response Body

{
  "Id": 325434,
  "EmailId": "kaushal@pratikar.com",
  "requestip": "117.241.241.130:5/11/2016 8:22:12 PM",
  "status": "Done",
  "verified": true
}

Depending on the queue the verification can take some time.

You can play around with the API from your browser at the API documentation page.

Don’t forget to leave a comment with your feedback!

Written by admin

Website:


Leave a Reply

Your email address will not be published. Required fields are marked *