Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

76 lines (63 sloc) 2.31 kB
layout weight title navigation
page
200
Subuser Spam Reports
show
true

{% anchor h2 %} Retrieve Spam Reports {% endanchor %}

{% parameters get %} {% parameter task Yes 'Must be set to get' 'Task to retrieve spam reports' %} {% parameter user Yes 'Subuser must be under your account' 'Subuser to retrieve the spam reports of' %} {% parameter date No '0 or 1' 'Optional argument to retrieve the timestamps, in ISO-8601 format, Pacific Timezone: YYYY-MM-DD HH:MM:SS' %} {% endparameters %}

{% apiexample get POST https://api.sendgrid.com/api/user.spamreports api_user=your_sendgrid_username&api_key=your_sendgrid_password&user=subuser_username&task=get&date=1 %} {% response json %} [ { "email": "email1@domain.com", "created": "2009-06-01 19:41:39" }, { "email": "email2@domain2.com", "created": "2009-06-01 19:41:39" } ] {% endresponse %} {% response xml %} email1@domain.com 2009-06-10 12:40:30 email2@domain2.com 2009-06-10 12:40:30

{% endresponse %} {% endapiexample %}


{% anchor h2 %} Delete Spam Reports {% endanchor %} 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.

{% parameters delete %} {% parameter task Yes 'Must be set to delete' 'Task to remove address from spam report suppression list' %} {% parameter user Yes 'Subuser must be under your account' 'Subuser to remove spam reporting address from' %} {% parameter email Yes 'Address exists on the list' 'Address to remove from the Spam Report suppression list' %} {% endparameters %}

{% apiexample delete POST https://api.sendgrid.com/api/user.spamreports api_user=your_sendgrid_username&api_key=your_sendgrid_password&user=subuser_username&task=delete&email=spamreport@domain.com %} {% response json %} { "message": "success" } {% endresponse %} {% response xml %} success

{% endresponse %} {% endapiexample %}

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