---
title: getSplitMasterId
slug: campaign/docs/getsplitmasterid
docTags: 
createdAt: 2026-07-02T19:01:47.121Z
---

**Type**: long

**Parameters**

| Name      | Type   | Value                   |
| --------- | ------ | ----------------------- |
| sessionId | String | ID of the session       |
| mailingId | long   | ID of the split mailing |

**Return values**

ID of the master mailing that is associated with the split mailing.

If no master mailing is found (i.e., the specified mailing is no split mailing), 0 is returned.

**Code structure**

```javascript
long getSplitMasterId(String sessionId, long mailingId)
```
