Skip to content
Start here

List account Email Sending suppressions

client.EmailSending.Suppressions.List(ctx, params) (*CursorPagination[SuppressionListResponse], error)
GET/accounts/{account_id}/email/sending/suppressions

Lists every active Email Sending suppression owned by the account: sending-domain suppressions first, then account-wide suppressions (including legacy rows with internal zone memberships). Each group is newest first.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

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

Example:X-Auth-Email: user@example.com

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

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
ParametersExpand Collapse
params SuppressionListParams
AccountID param.Field[string]

Path param: Cloudflare account ID.

Cursor param.Field[string]Optional

Query param: Opaque pagination cursor returned as result_info.next_cursor. It carries the filters that produced it.

maxLength2048
Email param.Field[string]Optional

Query param: Exact email-address filter.

formatemail
PerPage param.Field[int64]Optional

Query param: Maximum number of suppressions to return per page.

maximum1000
minimum1
Reason param.Field[SuppressionListParamsReason]Optional

Query param: Filter to suppressions with this reason.

const SuppressionListParamsReasonManual SuppressionListParamsReason = "manual"
const SuppressionListParamsReasonComplaint SuppressionListParamsReason = "complaint"
const SuppressionListParamsReasonHardBounce SuppressionListParamsReason = "hard_bounce"
const SuppressionListParamsReasonSoftBounce SuppressionListParamsReason = "soft_bounce"
const SuppressionListParamsReasonPolicy SuppressionListParamsReason = "policy"
ScopeType param.Field[SuppressionListParamsScopeType]Optional

Query param: Filter by scope: account returns only account-wide suppressions, sending_domain only sending-domain suppressions. Omit to list both, sending-domain suppressions first.

const SuppressionListParamsScopeTypeAccount SuppressionListParamsScopeType = "account"
const SuppressionListParamsScopeTypeSendingDomain SuppressionListParamsScopeType = "sending_domain"
ScopeValue param.Field[string]Optional

Query param: Exact sending-domain filter. Requires scope_type=sending_domain.

maxLength1024
ReturnsExpand Collapse
type SuppressionListResponse struct{…}
ID string

Unique identifier for this suppression.

formatuuid
CreatedAt Time

When the suppression was created.

formatdate-time
Email string

The suppressed email address.

formatemail
ExpiresAt Time

When the suppression expires. Null for a permanent suppression.

formatdate-time
ReadOnly bool

Whether clients may mutate this suppression. This is determined by the server and must not be inferred from reason.

Reason string

Why the address is suppressed: manual, complaint, hard_bounce, soft_bounce, or policy.

Note stringOptional

Advisory note for this suppression, if any.

Scope SuppressionListResponseScopeOptional

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

One of the following:
type SuppressionListResponseScopeType struct{…}
Type SuppressionListResponseScopeTypeType

Blocks the recipient for every sending domain of the account.

type SuppressionListResponseScopeObject struct{…}
Type SuppressionListResponseScopeObjectType

Blocks the recipient only for mail whose envelope MAIL FROM uses value.

Value string

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

maxLength1024

List account Email Sending suppressions

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"),
  )
  page, err := client.EmailSending.Suppressions.List(context.TODO(), email_sending.SuppressionListParams{
    AccountID: cloudflare.F("12345678"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", page)
}
{
  "errors": [
    {}
  ],
  "messages": [
    {}
  ],
  "result": [
    {
      "id": "396a5436-d4b0-42a6-b3fc-48e8fa522321",
      "created_at": "2026-01-02T02:20:00Z",
      "email": "user@example.com",
      "expires_at": "2027-01-01T00:00:00Z",
      "read_only": false,
      "reason": "hard_bounce",
      "note": "Imported from CRM",
      "scope": {
        "type": "sending_domain",
        "value": "mail.example.com"
      }
    }
  ],
  "result_info": {
    "count": 1,
    "next_cursor": null,
    "per_page": 100
  },
  "success": true
}
Returns Examples
{
  "errors": [
    {}
  ],
  "messages": [
    {}
  ],
  "result": [
    {
      "id": "396a5436-d4b0-42a6-b3fc-48e8fa522321",
      "created_at": "2026-01-02T02:20:00Z",
      "email": "user@example.com",
      "expires_at": "2027-01-01T00:00:00Z",
      "read_only": false,
      "reason": "hard_bounce",
      "note": "Imported from CRM",
      "scope": {
        "type": "sending_domain",
        "value": "mail.example.com"
      }
    }
  ],
  "result_info": {
    "count": 1,
    "next_cursor": null,
    "per_page": 100
  },
  "success": true
}