# List email suppressions

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "CM.Email.Unsubscribe.Api - List Suppressions",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.cm.com/email/unsubscribe"
    }
  ],
  "paths": {
    "/v1/accounts/{logicalAccountId}/subscriptions": {
      "get": {
        "tags": [
          "EmailSuppression"
        ],
        "summary": "List email suppressions",
        "parameters": [
          {
            "name": "logicalAccountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "searchEmail",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "emailType",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": -1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailUnsubscribeResultControllerResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EmailUnsubscribeResultControllerResponse": {
        "type": "object",
        "properties": {
          "isSuccess": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "statusCode": {
            "$ref": "#/components/schemas/ConfigurationErrorCode"
          },
          "data": {
            "$ref": "#/components/schemas/EmailUnsubscribeResult"
          }
        },
        "additionalProperties": false
      },
      "EmailUnsubscribeResult": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int64"
          },
          "unsubscribedEmails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailUnsubscribe"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EmailUnsubscribe": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "messageRequestId": {
            "type": "string",
            "format": "uuid"
          },
          "sender": {
            "type": "string",
            "nullable": true
          },
          "recipient": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "emailType": {
            "type": "integer",
            "format": "int32"
          },
          "unsubscribeType": {
            "type": "integer",
            "format": "int32"
          },
          "logicalAccount": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "ConfigurationErrorCode": {
        "enum": [
          0,
          101,
          103,
          304,
          400,
          403,
          500,
          999
        ],
        "type": "integer",
        "format": "int32"
      }
    },
    "securitySchemes": {
      "X-CM-SSO-ACCOUNTGUID": {
        "type": "apiKey",
        "description": "Custom header for SSO Account GUID",
        "name": "X-CM-SSO-ACCOUNTGUID",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "X-CM-SSO-ACCOUNTGUID": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 104,
      "1": 191,
      "2": 188,
      "3": 170,
      "4": 249,
      "5": 207,
      "6": 250,
      "7": 220,
      "8": 62,
      "9": 51,
      "10": 99,
      "11": 32
    }
  }
}
```