docs icon indicating copy to clipboard operation
docs copied to clipboard

Inconsistencies in the suppression API

Open doMynation opened this issue 6 years ago • 2 comments

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

doMynation avatar Aug 14 '20 19:08 doMynation

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

Whatthefoxsays avatar Aug 18 '20 18:08 Whatthefoxsays

Thank you very much

doMynation avatar Aug 18 '20 18:08 doMynation