Inconsistencies in the suppression API
The format to delete a suppression is different depending on the type of suppression you're deleting.
Deleting a Bounce
- Endpoint: /suppression/bounces/{email} (
{email}being optional??) - Required body parameter:
email_address - Returns a 404 when the address was not in the list
https://sendgrid.api-docs.io/v3.0/bounces-api/delete-a-bounce
Deleting a Spam Report
- Endpoint: /suppression/blocks/{email} (
{email}is required) - Required body parameter: None
- Returns a 404 when the address was not in the list
https://sendgrid.api-docs.io/v3.0/blocks-api/delete-a-specific-block
Deleting a global unsubscribe
- Endpoint: /asm/suppression/global/{email} (
{email}is required) - Required body parameter: None
- Returns a 204 when the address was not in the list
https://sendgrid.api-docs.io/v3.0/suppressions-global-suppressions/retrieve-all-global-suppressions
All these inconsistencies are very confusing, it'd be great to have a unified format and response for these.
Thank you
Hi @doMynation
Thanks so much for your feedback! We'll add this to our backlog and will follow up with Engineering to make sure we have it documented properly.
The Twilio SendGrid Docs Team
Thank you very much