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.
URI Parameter | Required | Requirements | Description |
---|---|---|---|
task | Yes | Must be set to get | Task to retrieve the invalid emails for the specified subuser |
user | Yes | Subuser must be under your account | The subuser retrieving invalid emails from |
date | No | 0 or 1 | Optional argument to retrieve the timestamps, in ISO-8601 format, Pacific Timezone: YYYY-MM-DD HH:MM:SS |
POST | https://api.sendgrid.com/apiv2/customer.invalidemails.json |
---|---|
POST Data | api_user=your_sendgrid_username&api_key=your_sendgrid_password&user=subuser_username&task=get&date=1 |
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 Parameter | Required | Requirements | Description |
---|---|---|---|
task | Yes | Must be set to delete | Task to remove the specified email from the invalid email list for the specified subuser |
user | Yes | Subuser must be under your account | The subuser to retrieve invalid emails from |
Yes | Must be a string | You must specify the invalid emails to remove |