# Get Unsubscription Process

Reads an unsubscription dialog or redirect with matching tags, content, order and app link. The same ID can identify either kind, so kind is required.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "dialog",
        "redirect"
      ]
    },
    "id": {
      "type": "integer",
      "minimum": 1
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "kind",
    "id"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "kind",
    "id",
    "name",
    "message",
    "url",
    "tagIds",
    "weight",
    "editUrl"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "kind": {
      "type": "string",
      "enum": [
        "dialog",
        "redirect"
      ]
    },
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "message": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "tagIds": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "weight": {
      "type": "integer"
    },
    "editUrl": {
      "type": "string"
    }
  }
}
```

