sendgrid / sendgrid-python

The Official Twilio SendGrid Python API Library
https://sendgrid.com
MIT License
1.55k stars 714 forks source link

Sendgrid Email Validation #969

Closed tmartin2089 closed 3 years ago

tmartin2089 commented 3 years ago

Issue Summary

I apologize if I'm missing something obvious but I don't see any documentation on how to validate email addresses via this library, or even any reference to the email validation API. Is this not an included feature in this library?

bwackwat commented 3 years ago

I second this.

shwetha-manvinkurke commented 3 years ago

Hi @tmartin2089,

We do not have a handcrafted helper for this endpoint; however, you can utilize this example to craft your call:

data = {
  "email": "john.doe@gmial.com",
  "source": "signup"
}
sg.client.validations.email.post(request_body=data)

Let us know if that helps.

Thanks, Shwetha