---
title: getIdsInStatus
slug: campaign/docs/getidsinstatus
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

**Type**: long\[ ]

**Parameters**

| Name          | Type   | Value                                                                                                  |
| ------------- | ------ | ------------------------------------------------------------------------------------------------------ |
| sessionId     | String | ID of the session                                                                                      |
| mailingType   | String | Type of the mailing (regular, event, confirmation, template, campaign, split)                          |
| mailingStatus | String | Status of the mailing (NEW, SENDING, DONE and CANCELED). Status of the campaign (ACTIVATION\_REQUIRED) |

**Return values**

IDs of all mailings of the given type and status

**Code structure**

```javascript
long[] getIdsInStatus(String sessionId, String mailingType, String mailingStatus)
```
