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

**Type**: Boolean

**Parameters**

| Name            | Type   | Value                    |
| --------------- | ------ | ------------------------ |
| sessionId       | String | ID of the session        |
| recipientListId | long   | ID of the recipient list |
| recipientId     | String | ID of the recipient      |

**Return values**

- true: Recipient already exists
- false: Recipient does not exist or an entry exists but the opt-in process has not been finished yet (i.e., the double opt-in link has not been clicked)

**Code structure**

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