---
title: getConfirmationMailingId
slug: campaign/docs/getconfirmationmailingid
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

This method is only applicable to opt-in processes of the type double or confirmed.

**Type**: long

**Parameters**

| Name           | Type   | Value                    |
| -------------- | ------ | ------------------------ |
| sessionId      | String | ID of the session        |
| optinProcessId | long   | ID of the opt-in process |

**Return values**

ID of the mailing that sends the confirmation email

**Code structure**

```javascript
long getConfirmationMailingId(String sessionId, long optinProcessId)
```
