> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/campaigns/pause-unpause-a-campaig.md).

# Pause/Unpause a Campaig

### ⏸️ Pause/Unpause a Campaign

Use this endpoint to pause a currently sending campaign or to resume a paused campaign.

***

#### 🔹 HTTP Request

```http
PUT API-URL/campaigns/CAMPAIGN-UNIQUE-ID/pause-unpause
```

***

#### 🔸 URL Segments

| Segment              | Required | Description                          |
| -------------------- | -------- | ------------------------------------ |
| `CAMPAIGN-UNIQUE-ID` | Yes      | Campaign unique ID to pause/unpause. |

***

#### 🔐 Authorization Header

```
X-API-KEY: your-api-key-here
```

***

#### 💻 PHP Example

```php
// Pause/Unpause CAMPAIGN
$response = $endpoint->pauseUnpause('CAMPAIGN-UNIQUE-ID');

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
```

***

#### 📦 Sample JSON Response

```json
{
  "status": "success",
  "campaign": {
    "status": "sending"
  }
}
```
