# Get Subscription Redirect URL

Resolves the opt-in redirect URL for a specified contact email. The URL includes that contact’s ID, address and subscriber key: use only the intended person’s address. It points to the pending or confirmed page according to status; without a custom page it uses KlickTipp’s hosted page.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "description": "Email address of the contact the URL is resolved for; required, and it identifies which contact the URL points at",
      "minLength": 3,
      "maxLength": 250
    },
    "optInProcessId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "Opt-in process to resolve for; omit for the one the subscriber signed up through",
      "default": null,
      "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": [
    "email"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "subscriberId",
    "email",
    "subscriptionStatus",
    "optInProcessId",
    "optInProcessName",
    "redirectUrl",
    "redirectPage"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "subscriberId": {
      "type": "integer"
    },
    "email": {
      "type": "string"
    },
    "subscriptionStatus": {
      "type": "string"
    },
    "optInProcessId": {
      "type": "integer"
    },
    "optInProcessName": {
      "type": "string"
    },
    "redirectUrl": {
      "type": "string"
    },
    "redirectPage": {
      "type": "string"
    }
  }
}
```

