# Get Opt-In Process

Reads an opt-in process (subscriber list) by ID: mode, confirmation email ID, redirect URLs and parameters, pending-subscriber deletion, labels and notes.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "optInProcessId": {
      "type": "integer",
      "description": "ID of the opt-in process, as shown in the KlickTipp app URL",
      "minimum": 1
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "optInProcessId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "id",
    "accountId",
    "name",
    "isDefaultProcess",
    "optInMode",
    "createdAt",
    "confirmationEmailId",
    "resendConfirmationEmail",
    "useForChangeEmail",
    "deletePendingSubscribersAfterDays",
    "pendingRedirectUrl",
    "confirmedRedirectUrl",
    "metaLabels",
    "notes",
    "pendingPageParameters",
    "confirmedPageParameters",
    "pendingUtmParameters",
    "confirmedUtmParameters",
    "editUrl"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "accountId": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "isDefaultProcess": {
      "type": "boolean"
    },
    "optInMode": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "confirmationEmailId": {
      "type": "integer"
    },
    "resendConfirmationEmail": {
      "type": "boolean"
    },
    "useForChangeEmail": {
      "type": "boolean"
    },
    "deletePendingSubscribersAfterDays": {
      "type": "integer"
    },
    "pendingRedirectUrl": {
      "type": "string"
    },
    "confirmedRedirectUrl": {
      "type": "string"
    },
    "metaLabels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "notes": {
      "type": "string"
    },
    "pendingPageParameters": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "confirmedPageParameters": {
      "type": "object",
      "additionalProperties": {
        "type": [
          "string",
          "integer"
        ]
      }
    },
    "pendingUtmParameters": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "confirmedUtmParameters": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "editUrl": {
      "type": "string"
    }
  }
}
```

