Campaigns
Send Campaign Immediately
Queue a campaign for immediate delivery
POST
/
api
/
v1
/
campaigns
/
{campaignId}
/
send
Send Campaign Immediately
curl --request POST \
--url https://api.sequenzy.com/api/v1/campaigns/{campaignId}/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"targetLists": {},
"listIds": [
{}
],
"sendTimeOptimization": true,
"sendTimeWindowHours": 123,
"spreadOverHours": 123,
"maxRecipients": {}
}
'import requests
url = "https://api.sequenzy.com/api/v1/campaigns/{campaignId}/send"
payload = {
"targetLists": {},
"listIds": [{}],
"sendTimeOptimization": True,
"sendTimeWindowHours": 123,
"spreadOverHours": 123,
"maxRecipients": {}
}
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({
targetLists: {},
listIds: [{}],
sendTimeOptimization: true,
sendTimeWindowHours: 123,
spreadOverHours: 123,
maxRecipients: {}
})
};
fetch('https://api.sequenzy.com/api/v1/campaigns/{campaignId}/send', 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}/send",
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([
'targetLists' => [
],
'listIds' => [
[
]
],
'sendTimeOptimization' => true,
'sendTimeWindowHours' => 123,
'spreadOverHours' => 123,
'maxRecipients' => [
]
]),
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}/send"
payload := strings.NewReader("{\n \"targetLists\": {},\n \"listIds\": [\n {}\n ],\n \"sendTimeOptimization\": true,\n \"sendTimeWindowHours\": 123,\n \"spreadOverHours\": 123,\n \"maxRecipients\": {}\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}/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"targetLists\": {},\n \"listIds\": [\n {}\n ],\n \"sendTimeOptimization\": true,\n \"sendTimeWindowHours\": 123,\n \"spreadOverHours\": 123,\n \"maxRecipients\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/campaigns/{campaignId}/send")
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 \"targetLists\": {},\n \"listIds\": [\n {}\n ],\n \"sendTimeOptimization\": true,\n \"sendTimeWindowHours\": 123,\n \"spreadOverHours\": 123,\n \"maxRecipients\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"scheduledAt": "2026-12-05T00:00:00.000Z",
"previewUrl": "https://sequenzy.com/dashboard/company/company_abc123/campaign/camp_abc123?step=review",
"campaign": {
"id": "camp_abc123",
"status": "scheduled"
}
}
{
"success": false,
"error": "Immediate sends do not support recurringInterval. Use schedule instead."
}
{
"success": false,
"error": "API key is missing required scope: campaigns:send"
}
{
"success": false,
"code": "ALREADY_QUEUED",
"error": "Campaign is already queued to send immediately."
}
Send a draft campaign, or a campaign scheduled more than 60 seconds in the future, immediately. The campaign must have a verified sending domain, a subject and content, and a valid audience.
Requires
campaigns:send. Keys with only campaigns:write receive 403.
The response returns campaign.status, which is either scheduled (queued for immediate processing) or waiting_approval when the send requires safety review. Retrying an already queued immediate send within 60 seconds returns 409 with code ALREADY_QUEUED so retries do not double-send.
Immediate sends do not support recurringInterval or sendInRecipientTimezone; use Schedule Campaign for future, recurring, or recipient-timezone sends.
Request
Optional targeting object. Omit to reuse saved targeting or send to all active subscribers. Mutually exclusive with
listIds.Cap delivery at the first N matching subscribers (1-10,000,000), or pass
null to clear a saved cap.curl -X POST "https://api.sequenzy.com/api/v1/campaigns/camp_abc123/send" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
Responses
{
"success": true,
"scheduledAt": "2026-12-05T00:00:00.000Z",
"previewUrl": "https://sequenzy.com/dashboard/company/company_abc123/campaign/camp_abc123?step=review",
"campaign": {
"id": "camp_abc123",
"status": "scheduled"
}
}
{
"success": false,
"error": "Immediate sends do not support recurringInterval. Use schedule instead."
}
{
"success": false,
"error": "API key is missing required scope: campaigns:send"
}
{
"success": false,
"code": "ALREADY_QUEUED",
"error": "Campaign is already queued to send immediately."
}
⌘I
Send Campaign Immediately
curl --request POST \
--url https://api.sequenzy.com/api/v1/campaigns/{campaignId}/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"targetLists": {},
"listIds": [
{}
],
"sendTimeOptimization": true,
"sendTimeWindowHours": 123,
"spreadOverHours": 123,
"maxRecipients": {}
}
'import requests
url = "https://api.sequenzy.com/api/v1/campaigns/{campaignId}/send"
payload = {
"targetLists": {},
"listIds": [{}],
"sendTimeOptimization": True,
"sendTimeWindowHours": 123,
"spreadOverHours": 123,
"maxRecipients": {}
}
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({
targetLists: {},
listIds: [{}],
sendTimeOptimization: true,
sendTimeWindowHours: 123,
spreadOverHours: 123,
maxRecipients: {}
})
};
fetch('https://api.sequenzy.com/api/v1/campaigns/{campaignId}/send', 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}/send",
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([
'targetLists' => [
],
'listIds' => [
[
]
],
'sendTimeOptimization' => true,
'sendTimeWindowHours' => 123,
'spreadOverHours' => 123,
'maxRecipients' => [
]
]),
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}/send"
payload := strings.NewReader("{\n \"targetLists\": {},\n \"listIds\": [\n {}\n ],\n \"sendTimeOptimization\": true,\n \"sendTimeWindowHours\": 123,\n \"spreadOverHours\": 123,\n \"maxRecipients\": {}\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}/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"targetLists\": {},\n \"listIds\": [\n {}\n ],\n \"sendTimeOptimization\": true,\n \"sendTimeWindowHours\": 123,\n \"spreadOverHours\": 123,\n \"maxRecipients\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/campaigns/{campaignId}/send")
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 \"targetLists\": {},\n \"listIds\": [\n {}\n ],\n \"sendTimeOptimization\": true,\n \"sendTimeWindowHours\": 123,\n \"spreadOverHours\": 123,\n \"maxRecipients\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"scheduledAt": "2026-12-05T00:00:00.000Z",
"previewUrl": "https://sequenzy.com/dashboard/company/company_abc123/campaign/camp_abc123?step=review",
"campaign": {
"id": "camp_abc123",
"status": "scheduled"
}
}
{
"success": false,
"error": "Immediate sends do not support recurringInterval. Use schedule instead."
}
{
"success": false,
"error": "API key is missing required scope: campaigns:send"
}
{
"success": false,
"code": "ALREADY_QUEUED",
"error": "Campaign is already queued to send immediately."
}