> ## Documentation Index
> Fetch the complete documentation index at: https://api.smartlead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk Pause or Stop Campaigns

> Pause or stop up to 100 campaigns in one request

Pauses or stops several campaigns at once, for example every campaign that uses a domain with a deliverability problem. Each campaign goes through the same checks as [Update Campaign Status](https://api.smartlead.ai/api-reference/campaigns/update-status.md), one after another, and the reply says which ones changed and which did not.

This endpoint only stops sending. To start (resume) or archive a campaign, use [Update Campaign Status](https://api.smartlead.ai/api-reference/campaigns/update-status.md) for each campaign.

> [!NOTE]
>
> With a client API key, only that client's campaigns change. Any other campaign ID is reported in `failed` as `Campaign not found - Invalid campaign_id.`, the same as the one-campaign endpoint.

## Query Parameters

**api\_key** `string` *required*

Your SmartLead API key

## Request Body

**campaign\_ids** `array` *required*

Campaign IDs (positive integers, no duplicates). 1 to 100 IDs.

**status** `string` *required*

`PAUSED` to pause, `STOPPED` to stop. Any other value returns 400 and changes nothing.

```bash cURL theme={null}
curl -X POST "https://server.smartlead.ai/api/v1/campaigns/bulk-status?api_key=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"campaign_ids": [123, 124, 125], "status": "PAUSED"}'
```

```python Python theme={null}
import requests

response = requests.post(
    "https://server.smartlead.ai/api/v1/campaigns/bulk-status",
    params={"api_key": "YOUR_API_KEY"},
    json={"campaign_ids": [123, 124, 125], "status": "PAUSED"},
)
result = response.json()
print("updated:", result["updated"], "failed:", result["failed"])
```

## Response Codes

**200** `Success`

Every campaign was tried. `updated` lists the IDs that changed; `failed` lists the others with the status code and error the one-campaign endpoint gives. `ok` is `true` only when `failed` is empty, so check `failed` before treating the request as done.

**400** `Bad Request`

`status` is not `PAUSED` or `STOPPED`; `campaign_ids` is missing, empty, longer than 100, has duplicates or values that are not positive integers; or the body has other keys

**401** `Unauthorized`

Invalid or missing API key

```json 200 - Success theme={null}
{
  "ok": false,
  "status": "PAUSED",
  "updated": [123, 124],
  "failed": [
    {
      "campaign_id": 125,
      "status_code": 404,
      "error": "Campaign not found - Invalid campaign_id."
    }
  ]
}
```

```json 400 - Status not allowed here theme={null}
{
  "ok": false,
  "error": "Invalid value for status. Allowed values are - PAUSED,STOPPED. To start or archive, use POST /campaigns/{campaign_id}/status per campaign."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.