---
agentTools:
  projectIndex: https://sendios.readme.io/llms.txt
---

# [Email] Unsubscribe user from types

АРІ-точка для відписки користувача від конкретного типу транзакційного листа, який передається за допомогою параметру type_id.

> 🚧 Зверніть увагу, що відписатися від системних листів неможливо.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Sendios API V1",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.sendios.io/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v3/project/{project_id}/subscription/email/types/unsubscribe": {
      "post": {
        "summary": "[Email] Unsubscribe user from types",
        "description": "АРІ-точка для відписки користувача від конкретного типу транзакційного листа, який передається за допомогою параметру type_id.",
        "operationId": "unsubscribe-user-from-types-1",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "description": "Ідентифікатор Проєкту.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "client_user_id",
                  "types_id"
                ],
                "properties": {
                  "client_user_id": {
                    "type": "string",
                    "description": "Ідентифікатор користувача на стороні клієнта;"
                  },
                  "types_id": {
                    "type": "array",
                    "description": "Масив типів листів.",
                    "items": {
                      "type": "integer",
                      "format": "int32"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status\": \"success\",\n    \"data\": {\n        \"queued\": true\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "queued": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"_meta\": {\n        \"status\": \"ERROR\",\n        \"time\": 63,\n        \"count\": 1\n    },\n    \"data\": {\n        \"error\": \"Not Found\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "_meta": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "ERROR"
                        },
                        "time": {
                          "type": "integer",
                          "example": 63,
                          "default": 0
                        },
                        "count": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        }
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "string",
                          "example": "Not Found"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "62612e954e73ee00a2f415e3:65491272794312000d52ae7a"
}
```