Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Subuser Invalid Emails


(warning)

This documentation is for the SendGrid Web API v2

To access all the latest features and upcoming developments, please see our v3 API.


Retrieve Invalid Emails

retrieve-invalid-emails page anchor
URI ParameterRequiredRequirementsDescription
taskYesMust be set to getTask to retrieve the invalid emails for the specified subuser
userYesSubuser must be under your accountThe subuser retrieving invalid emails from
dateNo0 or 1Optional argument to retrieve the timestamps, in ISO-8601 format, Pacific Timezone: YYYY-MM-DD HH:MM:SS
JSONXML

Call

POSThttps://api.sendgrid.com/apiv2/customer.invalidemails.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&user=subuser_username&task=get&date=1

Response


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


SendGrid drops messages to invalid emails. Users can remove invalid emails from their list at any time if they believe the address to now be valid.

URI ParameterRequiredRequirementsDescription
taskYesMust be set to deleteTask to remove the specified email from the invalid email list for the specified subuser
userYesSubuser must be under your accountThe subuser to retrieve invalid emails from
emailYesMust be a stringYou must specify the invalid emails to remove
JSONXML
POSThttps://api.sendgrid.com/apiv2/customer.invalidemails.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&user=subuser_username&task=delete&email=invalidemail@example.com

_10
{
_10
"message": "success"
_10
}


Rate this page: