provider Spam Reports API GET /suppression/spam_reports
@utdk/sendgrid /suppression/spam_reports
Retrieve all spam reports
**This endpoint allows you to retrieve all spam reports.**
start_time query
The start of the time range when a spam report was created (inclusive). This is a unix timestamp.
integer
end_time query
The end of the time range when a spam report was created (inclusive). This is a unix timestamp.
integer
limit query
Limit the number of results to be displayed per page.
integer
offset query
Paging offset. The point in the list to begin displaying results.
integer
on-behalf-of header
string

Try it

Authentication
Configure credentials for Email Activity (beta)
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getSuppressionSpamReports
GET/suppression/spam_reports
**This endpoint allows you to retrieve all spam reports.**

The start of the time range when a spam report was created (inclusive). This is a unix timestamp.

The end of the time range when a spam report was created (inclusive). This is a unix timestamp.

Limit the number of results to be displayed per page.

Paging offset. The point in the list to begin displaying results.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sendgrid from '@utdk/sendgrid';

await sendgrid.getSuppressionSpamReports({
  "on-behalf-of": "The subuser's username. This header generates the API call as if the subuser account was making the call."
})