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

# [Email] Check if unsubscribed

API-точка для перевірки наявності відписки користувача від каналу "Email". У випадку позитивної відповіді вона повертає відповідну інформацію.

| Response params  | Description                                   |
| :--------------- | :-------------------------------------------- |
| project\_id      | Ідентифікатор Проєкту;                        |
| client\_user\_id | Ідентифікатор користувача на стороні клієнта; |
| source\_id       | Причина відписки;                             |
| source           | Розшифрування причини відписки;               |
| created\_at      | Час створення відписки.                       |

# 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/{client_user_id}": {
      "get": {
        "summary": "[Email] Check if unsubscribed",
        "description": "API-точка для перевірки наявності відписки користувача від каналу \"Email\". У випадку позитивної відповіді вона повертає відповідну інформацію.",
        "operationId": "check-if-unsubscribed-1",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "description": "Ідентифікатор Проєкту;",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "client_user_id",
            "in": "path",
            "description": "Ідентифікатор користувача на стороні клієнта.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status\": \"success\",\n    \"data\": {\n        \"project_id\": 123,\n        \"client_user_id\": \"c04b2778-5b2a-4db8-b7e6-b92d0fefa6da\",\n        \"source_id\": 10,\n        \"source\": {\n            \"name\": \"invalid\",\n            \"reason\": \"email is not valid/ email does not exist\"\n        },\n        \"create_at\": \"2023-07-11 16:36:13\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "project_id": {
                          "type": "integer",
                          "example": 123,
                          "default": 0
                        },
                        "client_user_id": {
                          "type": "string",
                          "example": "c04b2778-5b2a-4db8-b7e6-b92d0fefa6da"
                        },
                        "source_id": {
                          "type": "integer",
                          "example": 10,
                          "default": 0
                        },
                        "source": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "example": "invalid"
                            },
                            "reason": {
                              "type": "string",
                              "example": "email is not valid/ email does not exist"
                            }
                          }
                        },
                        "create_at": {
                          "type": "string",
                          "example": "2023-07-11 16:36:13"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "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:65490d9ece89f3000c6b7deb"
}
```