Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

196 lines (160 sloc) 5.554 kB
layout weight title seo navigation
page
0
Customer Invalid Emails
robots
NOINDEX, FOLLOW
show
true

{% warning %} This feature is deprecated, please go to the Version 2 Reseller Customer Invalid Emails page. {% endwarning %}

{% anchor h2 %} Retrieve Invalid Emails {% endanchor %}

Parameter Required Requirements Description
user Yes Customer must be registered under your account The customer we are retrieving invalid emails from
task Yes Must be set to get This will allow you to retrieve the invalid emails for the specified customer
date No Must be set to 1 Retrieves the timestamps, it will return a date in a MySQL timestamp format - YYYY-MM-DD HH:MM:SS
method Yes Must be set to invalidemails Allows you to access invalid email functionality

XML Call

{% requestblock %}

{% requesturl POST %}https://api.sendgrid.com/api/distributor.manage.xml {% endrequesturl %}

{% requestdata Data POST %}api_user=your_sendgrid_username&api_key=your_sendgrid_password&method=invalidemails&user=customer@example.com&task=get&date= {% endrequestdata %}

{% endrequestblock %}

Response

{% codeblock %} invalidemails>isaac@hotmail.commMail domain mentioned in email address is unknown2009-06-10 12:40:30isaac@hotmailBad Syntax2009-06-10 12:40:30isaac@example.comKnown bad domain2009-06-10 12:40:30</invalidemails {% endcodeblock %}

JSON Call

{% requestblock %}

{% requesturl POST %}https://api.sendgrid.com/api/distributor.manage.json {% endrequesturl %}

{% requestdata Data POST %}api_user=your_sendgrid_username&api_key=your_sendgrid_password&method=invalidemails&user=customer@example.com&task=get&date= {% endrequestdata %}

{% endrequestblock %}

Response

{% codeblock %} {"email":"isaac@hotmail.comm","reason":"Mail domain mentioned in email address is unknown","created":"2009-06-01 19:41:39"},{"email":"isaac@hotmail","reason":"Bad Syntax","created":"2009-06-01 19:41:39"},{"email":"isaac@example.com","reason":"Known bad domain","created":"2009-06-01 19:41:39"} {% endcodeblock %}


{% anchor h2 %} Delete Invalid Emails {% endanchor %}

Since SendGrid does not deliver to invalid emails, users can remove invalid emails from their list at any time if re-delivery to a spam reported address is desired.

Parameter Required Requirements Description
user Yes Customer must be registered under your account The customer we are retrieving invalid emails from
task Yes Must be set to delete This will allow you to delete a invalid email for the specified customer
email No Must be a invalid email You must specify the invalid emails to remove
method Yes Must be set to invalidemails Allows you to access invalid emails functionality

XML Call

{% requestblock %}

{% requesturl POST %}https://api.sendgrid.com/api/distributor.manage.xml {% endrequesturl %}

{% requestdata Data POST %}api_user=your_sendgrid_username&api_key=your_sendgrid_password&method=invalidemails&user=customer@example.com&task=delete&email=invalidemail@example.com {% endrequestdata %}

{% endrequestblock %}

Response: Success

{% codeblock %} result>success {% endcodeblock %}

Response: Error

{% codeblock %} result>Email does not exist {% endcodeblock %}

JSON Call

{% requestblock %}

{% requesturl POST %}https://api.sendgrid.com/api/distributor.manage.json {% endrequesturl %}

{% requestdata Data POST %}api_user=your_sendgrid_username&api_key=your_sendgrid_password&method=invalidemails&user=customer@example.com&task=delete&email=invalidemail@example.com {% endrequestdata %}

{% endrequestblock %}

Response: Success

{% codeblock lang:json %} { "message": "success" } {% endcodeblock %}

Response: Error

{% codeblock lang:json %} { "message": "Email does not exist" } {% endcodeblock %}

Jump to Line
Something went wrong with that request. Please try again.