provider Blocks API GET
/suppression/blocks @utdk/sendgrid
/suppression/blocks Retrieve all blocks
**This endpoint allows you to retrieve all email addresses that are currently on your blocks list.**
- start_time query
- The start of the time range when a blocked email was created (inclusive). This is a unix timestamp.
- integer
- end_time query
- The end of the time range when a blocked email was created (inclusive). This is a unix timestamp.
- integer
- limit query
- Limit the number of results to be displayed per page.
- integer
- offset query
- 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.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sendgrid from '@utdk/sendgrid';
await sendgrid.getSuppressionBlocks({
"on-behalf-of": "The subuser's username. This header generates the API call as if the subuser account was making the call."
})