---
title: getMediaType
slug: campaign/docs/getmediatype
createdAt: 2026-07-02T19:01:45.941Z
---

**Type**: String

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |

**Return values**

Media type of the session: EMAIL or SMS

**Code structure**

```javascript
String getMediaType(String sessionId)
```
