---
updatedAt: 2026-11-11T07:32:40.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Remove a set of email addresses from email distribution lists

Unsubscribes email addresses from one or more Yotpo email types. Each key of `email_list` is an email type number from the Email types table and each value is an array of addresses. With `async` and `validate_data`, invalid addresses are reported in `response.errors` and the rest are processed. Unknown type keys are ignored.

> 👍 How to use this endpoint
>
> * To see example requests, click **Examples** in the payload on the right.
> * For example responses, click the relevant status code on the right.

> 📘 Note:
>
> * Currently, the returned `unsubscribers.id` is not supported in the Yotpo API.
> * For multiple requests, Yotpo recommends passing batches of 150 emails per request.
> * If you use the async parameter, the response does not contain "unsubscribers".
> * If you use the validate\_data parameter, the response will contain errors if the requested\
>   parameters are not valid.

## Email types

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Number
      </th>

      <th>
        Email Type
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        1
      </td>

      <td>
        Post-purchase <a href="https://support.yotpo.com/en/article/automatic-review-requests" target="_blank">automatic review request</a> emails and other reminder emails.
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Reviews API (V1)",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com",
      "description": "Main API server for authenticated and write operations"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your Yotpo account access token. See [Yotpo Authentication](ref:yotpo-authentication) to learn how to generate your token."
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/apps/{store_id}/unsubscribers/mass_create": {
      "post": {
        "summary": "Remove a set of email addresses from email distribution lists",
        "description": "Unsubscribes email addresses from one or more Yotpo email types. Each key of `email_list` is an email type number from the Email types table and each value is an array of addresses. With `async` and `validate_data`, invalid addresses are reported in `response.errors` and the rest are processed. Unknown type keys are ignored.",
        "operationId": "remove-a-set-of-email-addresses-from-email-distrib",
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "description": "The store ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email_list": {
                    "type": "object",
                    "description": "Hash of email addresses by email type. Use the Number from the Email types table on this page as each key (for example `1`, `2`, or `3`).",
                    "additionalProperties": {
                      "type": "array",
                      "description": "Email addresses to unsubscribe for the email type identified by this key.",
                      "items": {
                        "type": "string",
                        "description": "Email address",
                        "example": "test@email.com"
                      }
                    },
                    "example": {
                      "1": [
                        "test@email.com"
                      ]
                    }
                  },
                  "async": {
                    "type": "boolean",
                    "description": "Perform subscription changes asynchronously."
                  },
                  "validate_data": {
                    "type": "boolean",
                    "description": "Validate the email_list. You can only use this parameter with async."
                  }
                },
                "required": [
                  "email_list"
                ]
              },
              "examples": {
                "HTTP+JSON": {
                  "value": {
                    "email_list": {
                      "1": [
                        "test@example.com",
                        "test2@example.com",
                        "test4@example.com"
                      ],
                      "3": [
                        "test@example.com",
                        "test2@example.com",
                        "test4@example.com"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Default output": {
                    "value": "{\n  \"status\": {\n    \"code\": 200,\n    \"message\": \"OK\"\n  },\n  \"response\": {\n    \"unsubscribers\": [\n      {\n        \"id\": 105158,\n        \"user_email\": \"test@example.com\",\n        \"email_type_id\": 1,\n        \"unsubscribed_by_name\": \"MODERATOR\"\n      },\n      {\n        \"id\": 105159,\n        \"user_email\": \"test2@example.com\",\n        \"email_type_id\": 1,\n        \"unsubscribed_by_name\": \"MODERATOR\"\n      },\n      {\n        \"id\": 105160,\n        \"user_email\": \"test4@example.com\",\n        \"email_type_id\": 1,\n        \"unsubscribed_by_name\": \"MODERATOR\"\n      },\n      {\n        \"id\": 105161,\n        \"user_email\": \"test@example.com\",\n        \"email_type_id\": 3,\n        \"unsubscribed_by_name\": \"MODERATOR\"\n      },\n      {\n        \"id\": 105162,\n        \"user_email\": \"test2@example.com\",\n        \"email_type_id\": 3,\n        \"unsubscribed_by_name\": \"MODERATOR\"\n      },\n      {\n        \"id\": 105163,\n        \"user_email\": \"test4@example.com\",\n        \"email_type_id\": 3,\n        \"unsubscribed_by_name\": \"MODERATOR\"\n      }\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "integer",
                          "example": 200,
                          "default": 0,
                          "description": "HTTP status code."
                        },
                        "message": {
                          "type": "string",
                          "example": "OK",
                          "description": "Status message, for example `OK`."
                        }
                      },
                      "description": "Request status."
                    },
                    "response": {
                      "type": "object",
                      "properties": {
                        "unsubscribers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 105158,
                                "default": 0,
                                "description": "Unsubscribe record ID."
                              },
                              "user_email": {
                                "type": "string",
                                "example": "test@gmail.com",
                                "description": "The unsubscribed email address."
                              },
                              "email_type_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0,
                                "description": "The email type the address is unsubscribed from, as a number from the Email types table on Remove a set of email addresses (for example `1` for post-purchase review requests and reminders)."
                              },
                              "unsubscribed_by_name": {
                                "type": "string",
                                "example": "MODERATOR",
                                "description": "Who unsubscribed the address: `USER` (the recipient) or `MODERATOR` (your store)."
                              }
                            }
                          },
                          "description": "Unsubscribe records."
                        }
                      },
                      "description": "Response payload."
                    }
                  }
                }
              },
              "text/plain": {
                "examples": {
                  "Output with async parameter": {
                    "value": "{\n  \"status\": {\n    \"code\": 200,\n    \"message\": \"OK\"\n  }\n}  "
                  },
                  "Output with async and validate_data parameters": {
                    "value": "{\n  \"status\": {\n    \"code\": 200,\n    \"message\": \"OK\"\n  },\n  \"errors\": [\n    {\n      \"value\": \"14\",\n      \"error\": \"email type ID is not valid\"\n    },\n    {\n      \"value\": \"invalid-email-1\",\n      \"error\": \"email is not valid\"\n    },\n    {\n      \"value\": \"invalid-email-2\",\n      \"error\": \"email is not valid\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Output with async parameter",
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "integer",
                              "example": 200,
                              "default": 0
                            },
                            "message": {
                              "type": "string",
                              "example": "OK"
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Output with async and validate_data parameters",
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "integer",
                              "example": 200,
                              "default": 0
                            },
                            "message": {
                              "type": "string",
                              "example": "OK"
                            }
                          }
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "value": {
                                "type": "string",
                                "example": "14"
                              },
                              "error": {
                                "type": "string",
                                "example": "email type ID is not valid"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            },
            "headers": {
              "ratelimit-limit": {
                "description": "The maximum number of requests allowed in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "The number of requests remaining in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "The time (in seconds) until the rate limit resets",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit-minute": {
                "description": "The maximum number of requests allowed per minute",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining-minute": {
                "description": "The number of requests remaining in the current minute",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "The feature is disabled": {
                    "value": "{\n    \"status\": {\n        \"message\": \"Feature is disabled MapBlackList\",\n        \"code\": 401,\n        \"error_type\": \"Exceptions::FeatureDisabled\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": "string",
                          "example": "Feature is disabled MapBlackList",
                          "description": "What went wrong, for example `Feature is disabled MapBlackList` when unsubscribe management isn't enabled for your store."
                        },
                        "code": {
                          "type": "integer",
                          "example": 401,
                          "default": 0,
                          "description": "HTTP status code."
                        },
                        "error_type": {
                          "type": "string",
                          "example": "Exceptions::FeatureDisabled",
                          "description": "Error class, for example `Exceptions::RecordNotFound`."
                        }
                      },
                      "description": "Error details."
                    }
                  }
                }
              }
            },
            "headers": {
              "ratelimit-limit": {
                "description": "The maximum number of requests allowed in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "The number of requests remaining in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "The time (in seconds) until the rate limit resets",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit-minute": {
                "description": "The maximum number of requests allowed per minute",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining-minute": {
                "description": "The number of requests remaining in the current minute",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```