---
title: getSize
slug: campaign-dev-docs/getsize
createdAt: 2026-07-02T19:01:44.226Z
---

**Type**: long

**Parameters**

| Name         | Type   | Value                |
| ------------ | ------ | -------------------- |
| sessionId    | String | ID of the session    |
| attachmentId | long   | ID of the attachment |

**Return values**

Size of the attachment

**Code structure**

```javascript
long getSize(String sessionId, long attachmentId)
```
