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

**Type**: String

**Parameters**

| Name      | Type   | Value                                                                                                    |
| --------- | ------ | -------------------------------------------------------------------------------------------------------- |
| sessionId | String | ID of the session                                                                                        |
| entry     | String | Entry (for example, an email address) whose reason is to be queried (can contain wildcards like ? or \*) |

**Return values**

Reason for a blocklist entry

**Code structure**

```javascript
String getReason(String sessionId, String entry)
```
