Suppress an address
Adds an address to the suppression list, so nothing is sent to it any more.
View as
opensend.suppressions.create(input)Needs the scopesuppressions:writeFrom a terminal
opensend suppressions createInput
emailstringRequiredThe address to stop sending to. Up to 500 characters.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"suppression"Always
suppression.idstringThe id of the entry.
emailstringThe address that is not sent to.
reasonstringWhy it is on the list:
bounce,complaintormanualwhen you put it there.One of
bouncecomplaintmanualdetailstring | nullMore about the reason, or
null.removablebooleanWhether the entry can be removed. An address that complained cannot.
createdAtstringWhen the address was put on the list.