---
title: add
slug: campaign/docs/add-unsubscribews
docTags: 
createdAt: 2026-07-02T19:01:46.737Z
---

The recipient is unsubscribed from all recipient lists (but is not informed). The unsubscribe status is valid until the [remove](docId\:dFYi1WMspQXU0JeOQrALx) method is invoked or the recipient re-subscribes using a "normal" opt-in process.

Use this method to mark a recipient as *unsubscribed*. Recipients added to the unsubscribe list using this method are still visible in the recipient list, but are skipped when the mailing is sent.

To undo this step and re-subscribe a recipient, use the [remove](docId\:dFYi1WMspQXU0JeOQrALx) method. Be aware that re-adding a recipient using the [add2](docId:3Gac5czibNCsTeB5Fsu-E) method also removes the recipient from the unsubscribe list if he/she had previously been marked as unsubscribed and no opt-in process ID is submitted.

**Type**: void

**Parameters**

| Name            | Type   | Value                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| --------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sessionId       | String | ID of the session                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| recipientListId | long   | (Optional) Recipient list to which the recipient is assigned.<br /><br />If a client-wide unsubscribe list is configured, this parameter is meaningless. If recipient list-based unsubscribe lists are configured, the parameter selects the recipient list from which the recipient is unsubscribed.<br /><br />Set the value to 0 to force a client-wide unsubscribe even if the client is configured to use recipient list-based unsubscribes. |
| recipientId     | String | ID of the recipient                                                                                                                                                                                                                                                                                                                                                                                                                               |

**Return values**

- **Code structure**

```javascript
void add(String sessionId, long recipientListId, String recipientId)
```
