> 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/copy-a-campaign.md).

# Copy a Campaign

### 📄 Copy a Campaign

Create a new campaign by copying the configuration and content of an existing one.

***

#### 🔹 HTTP Request

```http
POST API-URL/campaigns/CAMPAIGN-UNIQUE-ID/copy
```

***

#### 🔸 URL Segments

| Segment              | Required | Description                      |
| -------------------- | -------- | -------------------------------- |
| `CAMPAIGN-UNIQUE-ID` | Yes      | Campaign unique ID to duplicate. |

***

#### 🔐 Authorization Header

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

***

#### 💻 PHP Example

```php
// Copy CAMPAIGN
$response = $endpoint->copy('CAMPAIGN-UNIQUE-ID');

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

***

#### 📦 Sample JSON Response

```json
{
  "status": "success",
  "campaign_uid": "ab781xqmvk274"
}
```
