---
title: createConfirmedOptinProcess
slug: campaign/docs/createconfirmedoptinprocess
docTags: 
createdAt: 2026-07-02T19:01:45.097Z
---

The mailing must be of the type confirmation.

**Type**: long

**Parameters**

| Name        | Type   | Value                                                 |
| ----------- | ------ | ----------------------------------------------------- |
| sessionId   | String | ID of the session                                     |
| Name        | String | Internal name of the opt-in process                   |
| Description | String | Internal description of the opt-in process            |
| mailingId   | long   | ID of the mailing that is used for the opt-in process |

**Return values**

ID of the opt-in process

**Code structure**

```javascript
long createConfirmedOptinProcess(String sessionId, String name, String description, long mailingId)
```
