---
title: getRecipientListId
slug: campaign/docs/getrecipientlistid-mailid
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

**Type**: long

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |
| mailId    | String | Mail ID           |

**Return values**

Recipient list ID

**Code structure**

```javascript
long getRecipientListId(String sessionId, String mailId)
```
