---
title: getResponseCount
slug: campaign/docs/getresponsecount
docTags: 
createdAt: 2026-07-02T19:01:46.737Z
---

**Type**: int

**Parameters**

| Name      | Type   | Value                                                                                                  |
| --------- | ------ | ------------------------------------------------------------------------------------------------------ |
| sessionId | String | ID of the session                                                                                      |
| mailingId | long   | ID of the mailing                                                                                      |
| category  | String | Type of the response. You can set the following values: hardbounce; softbounce; autoresponder; unknown |

**Return values**

Number of responses generated for the mailing

**Code structure**

```javascript
int getResponseCount(String sessionId, long mailingId, String category)
```
