---
title: pause
slug: campaign/dev-docs/pause
createdAt: 2026-08-06T15:53:56.555Z
---

The status can be queried with the [getStatus](https://docs.optimizely.com/campaign/dev-docs/getstatus) method. The mailing must be of the type regular. All other mailings (event, confirmation, template) cannot be paused.

**Type**: void

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |
| mailingId | long   | ID of the mailing |

**Return values**

- **Code structure**

```javascript
void pause(String sessionId, long mailingId)
```
