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

See also [resetBounceCounter](https://docs.optimizely.com/campaign-dev-docs/resetbouncecounter).

**Type**: int

**Parameters**

| Name      | Type   | Value                                                                                                                      |
| --------- | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| sessionId | String | ID of the session                                                                                                          |
| category  | String | See [Response categories](https://docs.optimizely.com/campaign-dev-docs/responsewebservice). 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)
```
