---
title: Create account Email Sending suppression
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Email Sending](https://developers.cloudflare.com/api/go/resources/email_sending)

[Suppressions](https://developers.cloudflare.com/api/go/resources/email_sending/subresources/suppressions)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Create account Email Sending suppression

client.EmailSending.Suppressions.New(ctx, params) (\*[SuppressionNewResponse](<https://developers.cloudflare.com/api/go/resources/email_sending#(resource)%20email_sending.suppressions%20%3E%20(model)%20SuppressionNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/email/sending/suppressions

Creates a suppression for every sending domain of the account (default) or for one sending domain (`scope.type = sending_domain`). Creating an existing active suppression returns its identifier. If a mutable legacy zone-linked account row already exists, it is promoted without changing its identifier.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### ParametersExpand Collapse

<details>

<summary>

params SuppressionNewParams

</summary>

AccountID param.Field\[string]

Path param: Cloudflare account ID.

<a href="#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

Email param.Field\[string]

Body param: The email address to suppress.

formatemail

<a href="#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20email">Link to this property</a>

ExpiresAt param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/email_sending/subresources/suppressions/methods/create#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20expires_at%20%3E%20(schema)">Time</a>]Optional

Body param: Expiration timestamp for the suppression. Omit or set to null for a permanent suppression that never expires.

formatdate-time

<a href="#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20expires_at">Link to this property</a>

Note param.Field\[string]Optional

Body param: Advisory note for this suppression. Not enforced or validated beyond length.

maxLength1000

<a href="#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20note">Link to this property</a>

<details>

<summary>

Scope param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/email_sending/subresources/suppressions/methods/create#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20scope%20%3E%20(schema)">SuppressionNewParamsScope</a>]Optional

Body param: Where the suppression applies. Omit for <code>{ "type": "account" }</code>, which blocks the recipient for every sending domain of the account.

</summary>

<details>

<summary>

type SuppressionNewParamsScopeType struct{…}

</summary>

Type SuppressionNewParamsScopeTypeType

Blocks the recipient for every sending domain of the account.

<a href="#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20scope%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20scope%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type SuppressionNewParamsScopeObject struct{…}

</summary>

Type SuppressionNewParamsScopeObjectType

Blocks the recipient only for mail whose envelope MAIL FROM uses <code>value</code>.

<a href="#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20scope%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

The sending domain to suppress for: the domain part of the envelope MAIL FROM. It is lowercased and trailing dots are removed. Internationalized domains must use the ASCII (punycode) form. Ownership is not checked; a domain the account does not send from never matches.

maxLength1024

<a href="#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20scope%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20scope%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_sending.suppressions%20%3E%20(method)%20create%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type SuppressionNewResponse struct{…}

</summary>

ID string

The suppression’s identifier.

formatuuid

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20SuppressionNewResponse%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

Scope SuppressionNewResponseScopeOptional

Where the suppression applies: <code>account</code> for every sending domain of the account, or <code>sending_domain</code> for one envelope MAIL FROM domain.

</summary>

One of the following:

<details>

<summary>

type SuppressionNewResponseScopeType struct{…}

</summary>

Type SuppressionNewResponseScopeTypeType

Blocks the recipient for every sending domain of the account.

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20SuppressionNewResponse%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20SuppressionNewResponse%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type SuppressionNewResponseScopeObject struct{…}

</summary>

Type SuppressionNewResponseScopeObjectType

Blocks the recipient only for mail whose envelope MAIL FROM uses <code>value</code>.

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20SuppressionNewResponse%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

The sending domain: the domain part of the envelope MAIL FROM, lowercase, without a trailing dot.

maxLength1024

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20SuppressionNewResponse%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20SuppressionNewResponse%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20SuppressionNewResponse%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_sending.suppressions%20%3E%20(model)%20SuppressionNewResponse%20%3E%20(schema)>)

### Create account Email Sending suppression

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/email_sending"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  suppression, err := client.EmailSending.Suppressions.New(context.TODO(), email_sending.SuppressionNewParams{
    AccountID: cloudflare.F("12345678"),
    Email: cloudflare.F("user@example.com"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", suppression.ID)
}
```

200 example

```
{
  "errors": [
    {}
  ],
  "messages": [
    {}
  ],
  "result": {
    "id": "396a5436-d4b0-42a6-b3fc-48e8fa522321",
    "scope": {
      "type": "sending_domain",
      "value": "mail.example.com"
    }
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {}
  ],
  "messages": [
    {}
  ],
  "result": {
    "id": "396a5436-d4b0-42a6-b3fc-48e8fa522321",
    "scope": {
      "type": "sending_domain",
      "value": "mail.example.com"
    }
  },
  "success": true
}
```