---
title: getBounceCounterThreshold
slug: campaign/docs/getbouncecounterthreshold
docTags: 
createdAt: 2026-07-02T19:01:47.121Z
---

See also [resetBounceCounter](docId\:kXjEUFHIsevIbiiEE0S58).

**Type**: int

**Parameters**

| Name      | Type   | Value                                                                                  |
| --------- | ------ | -------------------------------------------------------------------------------------- |
| sessionId | String | ID of the session                                                                      |
| category  | String | See [Response categories](docId\:lEdZccZZ6EwDmOJC0SBhi). Only hardbounce or softbounce |

**Return values**

Maximum number of responses a recipient can produce before the recipient receives no further mailings.

**Code structure**

```java
int getBounceCounterThreshold(String sessionId, String category)
```
