---
title: getMimeType
slug: campaign/docs/getmimetype-attachment
docTags: 
createdAt: 2026-07-02T19:01:46.737Z
---

**Type**: String

**Parameters**

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

**Return values**

MIME type of the attachment

**Code structure**

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