---
title: getMailingResponseCount
slug: campaign/docs/getmailingresponsecount
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

**Type**: int

**Parameters**

| Name      | Type   | Value                                                    |
| --------- | ------ | -------------------------------------------------------- |
| sessionId | String | ID of the session                                        |
| category  | String | See [Response categories](docId\:lEdZccZZ6EwDmOJC0SBhi). |
| mailingId | long   | ID of the mailing                                        |

**Return values**

Number of responses of the given type for a mailing

**Code structure**

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