---
title: getContent
slug: campaign/docs/getcontent
createdAt: 2026-07-02T19:01:47.121Z
---

**Type**: byte\[ ]

**Parameters**

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

**Return values**

Content of the attachment

**Code structure**

```javascript
byte[] getContent(String sessionId, long attachmentId)
```
