Skip to contentSkip to navigationSkip to topbar
On this page

Subuser Spam Reports


(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 Spam Reports

retrieve-spam-reports page anchor
URI ParameterRequiredRequirementsDescription
taskYesMust be set to getTask to retrieve spam reports
userYesSubuser must be under your accountSubuser to retrieve the spam reports of
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/api/user.spamreports.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&user=subuser_username&task=get&date=1

Response

1
[
2
{
3
"email": "emaieexampexample@example.com",
4
"created": "2009-06-01 19:41:39"
5
},
6
{
7
"email": "emaileexampexample@example.com",
8
"created": "2009-06-01 19:41:39"
9
}
10
]


SendGrid suppresses messages to spam-reporting addresses, but entries can be removed from the suppression list at any time if redelivery to a spam-reporting address is desired. Take care that the address should be redelivered to.

URI ParameterRequiredRequirementsDescription
taskYesMust be set to deleteTask to remove address from spam report suppression list
userYesSubuser must be under your accountSubuser to remove spam reporting address from
emailYesAddress exists on the listAddress to remove from the Spam Report suppression list
JSONXML
POSThttps://api.sendgrid.com/api/user.spamreports.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&user=subuser_username&task=delete&email=spamreport@domain.com
1
{
2
"message": "success"
3
}

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.