Skip to contentSkip to navigationSkip to topbar
On this page

Subuser Invalid Emails


(warning)

This documentation is for the SendGrid Web API v2

We will deprecate this version on February 10, 2025. To access all the latest features and upcoming developments, please see our v3 API. For assistance with transitioning, refer to our migration guide.


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

1
[
2
{
3
"email": "example@example.com",
4
"reason": "Mail domain mentioned in email address is unknown",
5
"created": "2009-06-01 19:41:39"
6
},
7
{
8
"email": "isaac@hotmail",
9
"reason": "Bad Syntax",
10
"created": "2009-06-01 19:41:39"
11
},
12
{
13
"email": "example@example.com",
14
"reason": "Known bad domain",
15
"created": "2009-06-01 19:41:39"
16
}
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
1
{
2
"message": "success"
3
}

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.