---
title: contains
slug: campaign/dev-docs/contains-unsubscribews
createdAt: 2026-08-06T15:53:46.648Z
---

**Type**: Boolean

**Parameters**

| Name        | Type   | Value        |
| ----------- | ------ | ------------ |
| sessionId   | String | Session ID   |
| recipientId | String | Recipient ID |

**Return values**

- true: Recipient is found on at least one unsubscribe list
- false: Recipient is not found on any unsubscribe list

**Note**: Usually, only one client-wide unsubscribe list exists.

**Code structure**

```javascript
boolean contains(String sessionId, String recipientId)
```
