---
title: getHeader
slug: campaign/docs/getheader
docTags: 
createdAt: 2026-07-02T19:01:44.226Z
---

**Type**: String\[ ]

**Parameters**

| Name      | Type   | Value                                                                                            |
| --------- | ------ | ------------------------------------------------------------------------------------------------ |
| sessionId | String | ID of the session                                                                                |
| mailingId | long   | ID of the mailing                                                                                |
| Name      | String | Field name<br /><br />Must be compliant with RFC822 (only 7bit US-ASCII characters are allowed). |

**Return values**

All values of the header

**Code structure**

```java
String[] getHeader(String sessionId, long mailingId, String name)
```
