Campaigns
Duplicate Campaign
Create a draft copy of a campaign
POST
/
api
/
v1
/
campaigns
/
{campaignId}
/
duplicate
Duplicate Campaign
curl --request POST \
--url https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mode": "<string>",
"variantId": "<string>"
}
'import requests
url = "https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate"
payload = {
"mode": "<string>",
"variantId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mode: '<string>', variantId: '<string>'})
};
fetch('https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mode' => '<string>',
'variantId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate"
payload := strings.NewReader("{\n \"mode\": \"<string>\",\n \"variantId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"<string>\",\n \"variantId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mode\": \"<string>\",\n \"variantId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"campaign": {
"id": "camp_new123",
"name": "April Launch (Copy)",
"subject": "A quick update",
"status": "draft",
"labels": [],
"emailId": "email_new123",
"scheduledAt": null,
"sentAt": null,
"createdAt": "2026-06-11T10:00:00.000Z",
"url": "https://sequenzy.com/dashboard/company/comp_abc123/campaign/camp_new123",
"previewUrl": "https://sequenzy.com/dashboard/company/comp_abc123/campaign/camp_new123?step=review"
}
}
{
"error": "Variant ID is required when duplicating a single variant"
}
{
"error": "A/B test variant not found for this campaign"
}
{
"error": "Invalid API key"
}
{
"error": "Campaign not found"
}
{
"error": "A/B test not found for this campaign"
}
{
"error": "Failed to duplicate campaign"
}
Create a draft copy of a campaign with a
(Copy) suffix. You can duplicate the plain campaign, copy the campaign together with its A/B test and variants, or copy a single variant’s content as a plain campaign.
Request
Campaign ID to duplicate.
Duplication mode.
campaign copies the campaign email (default), ab_test
also copies the linked A/B test and variants, variant copies one variant’s
content as a plain campaign.Variant ID to copy. Required when
mode is variant.curl -X POST "https://api.sequenzy.com/api/v1/campaigns/camp_abc123/duplicate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mode": "ab_test"}'
Responses
{
"success": true,
"campaign": {
"id": "camp_new123",
"name": "April Launch (Copy)",
"subject": "A quick update",
"status": "draft",
"labels": [],
"emailId": "email_new123",
"scheduledAt": null,
"sentAt": null,
"createdAt": "2026-06-11T10:00:00.000Z",
"url": "https://sequenzy.com/dashboard/company/comp_abc123/campaign/camp_new123",
"previewUrl": "https://sequenzy.com/dashboard/company/comp_abc123/campaign/camp_new123?step=review"
}
}
{
"error": "Variant ID is required when duplicating a single variant"
}
{
"error": "A/B test variant not found for this campaign"
}
{
"error": "Invalid API key"
}
{
"error": "Campaign not found"
}
{
"error": "A/B test not found for this campaign"
}
{
"error": "Failed to duplicate campaign"
}
Previous
Resend to Non-OpenersCreate a draft resend to subscribers who didn't open a sent campaign
Next
⌘I
Duplicate Campaign
curl --request POST \
--url https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mode": "<string>",
"variantId": "<string>"
}
'import requests
url = "https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate"
payload = {
"mode": "<string>",
"variantId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mode: '<string>', variantId: '<string>'})
};
fetch('https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mode' => '<string>',
'variantId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate"
payload := strings.NewReader("{\n \"mode\": \"<string>\",\n \"variantId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"<string>\",\n \"variantId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/campaigns/{campaignId}/duplicate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mode\": \"<string>\",\n \"variantId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"campaign": {
"id": "camp_new123",
"name": "April Launch (Copy)",
"subject": "A quick update",
"status": "draft",
"labels": [],
"emailId": "email_new123",
"scheduledAt": null,
"sentAt": null,
"createdAt": "2026-06-11T10:00:00.000Z",
"url": "https://sequenzy.com/dashboard/company/comp_abc123/campaign/camp_new123",
"previewUrl": "https://sequenzy.com/dashboard/company/comp_abc123/campaign/camp_new123?step=review"
}
}
{
"error": "Variant ID is required when duplicating a single variant"
}
{
"error": "A/B test variant not found for this campaign"
}
{
"error": "Invalid API key"
}
{
"error": "Campaign not found"
}
{
"error": "A/B test not found for this campaign"
}
{
"error": "Failed to duplicate campaign"
}