Skip to the page

Suppress an address

Adds an address to the suppression list, so nothing is sent to it any more.

opensend.suppressions.create(input)
Needs the scopesuppressions:writeFrom a terminalopensend suppressions create

Input

  • emailstringRequired

    The 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.

  • idstring

    The id of the entry.

  • emailstring

    The address that is not sent to.

  • reasonstring

    Why it is on the list: bounce, complaint or manual when you put it there.

    One ofbouncecomplaintmanual

  • detailstring | null

    More about the reason, or null.

  • removableboolean

    Whether the entry can be removed. An address that complained cannot.

  • createdAtstring

    When the address was put on the list.