# Unsubscribe Contact

Unsubscribes one contact email or SMS channel, stopping future subscribed-audience messages on it and possibly starting automations. Takes email or phone, never both; other channels stay unchanged.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "approval": {
      "type": "string",
      "description": "Exactly \"unsubscribe-contact\": acknowledges a changed real recipient and automations",
      "enum": [
        "unsubscribe-contact"
      ]
    },
    "email": {
      "type": [
        "null",
        "string"
      ],
      "description": "Email channel to unsubscribe; mutually exclusive with phoneNumber",
      "default": null,
      "maxLength": 250
    },
    "phoneNumber": {
      "type": [
        "null",
        "string"
      ],
      "description": "SMS channel to unsubscribe in E.164 format; mutually exclusive with email",
      "default": null,
      "maxLength": 50
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "approval"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "subscriberId",
    "channel",
    "contactInfo",
    "subscriptionStatus"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "subscriberId": {
      "type": "integer"
    },
    "channel": {
      "type": "string"
    },
    "contactInfo": {
      "type": "string"
    },
    "subscriptionStatus": {
      "type": "string"
    }
  }
}
```

