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

**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). |
| 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)
```
