---
title: copy
slug: campaign/dev-docs/copy-recipientlistws
createdAt: 2026-08-06T15:53:54.566Z
---

:::hint{type="info"}
**Note**
Only the definition of the given recipient list is copied, *not* the recipients. The created list is empty.
:::

**Type**: long

**Parameters**

| Name            | Type   | Value                                 |
| --------------- | ------ | ------------------------------------- |
| sessionId       | String | ID of the session                     |
| recipientListId | long   | ID of the recipient list to be copied |

**Return values**

ID of the new recipient list

**Code structure**

```javascript
long copy(String sessionId, long recipientListId)
```
