---
title: getAttachmentIds
slug: campaign/dev-docs/getattachmentids
createdAt: 2026-08-06T15:53:40.225Z
---

**Type**: long\[ ]

**Parameters**

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

**Return values**

IDs of the attachments

**Code structure**

```javascript
long[] getAttachmentIds(String sessionId, long mailingId)
```
