Resume paused or completed campaign
Resume a campaign with status paused or completed (same behavior as the dashboard's Resume button).
- paused: the campaign is re-activated. Leads paused with the campaign rejoin the sequence.
- completed: allowed only when there is something left to send, i.e. leads added after the
campaign finished, or (with
reEngageCompleted: true) finished leads that have new sequence steps. Adding leads to a completed campaign does not restart it by itself; call this endpoint afterwards.
Resuming requires an active subscription with remaining email quota, at least one sequence step, at least one active sending-enabled mailbox, and at least one lead. Stale scheduled send times are cleared so sending restarts at the normal pace.
curl -X POST "https://api.sendkit.ai/v1/campaigns/example_string/resume" \
-H "Content-Type: application/json" \
-H "X-Api-Key: YOUR_API_KEY" \
-d '{
"reEngageCompleted": true
}'
import requests
import json
url = "https://api.sendkit.ai/v1/campaigns/example_string/resume"
headers = {
"Content-Type": "application/json",
"X-Api-Key": "YOUR_API_KEY"
}
data = {
"reEngageCompleted": true
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.sendkit.ai/v1/campaigns/example_string/resume", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Api-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
"reEngageCompleted": true
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"reEngageCompleted": true
}`)
req, err := http.NewRequest("POST", "https://api.sendkit.ai/v1/campaigns/example_string/resume", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-Api-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.sendkit.ai/v1/campaigns/example_string/resume')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['X-Api-Key'] = 'YOUR_API_KEY'
request.body = '{
"reEngageCompleted": true
}'
response = http.request(request)
puts response.body
{
"success": true,
"data": {
"id": "665a1b2c3d4e5f6a7b8c9d0e",
"status": "active",
"previousStatus": "completed",
"reEngaged": 0
}
}
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Cannot resume campaign with status: draft"
}
}
{
"success": false,
"error": {
"code": "NOTHING_TO_RESUME",
"message": "Campaign has completed and has no leads left to send. Add new leads (or new steps with reEngageCompleted: true), then resume."
}
}
{
"success": false,
"error": {
"code": "SUBSCRIPTION_INACTIVE",
"message": "Cannot activate campaign without an active subscription"
}
}
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Campaign not found"
}
}
{
"success": false,
"error": {
"code": "CONFLICT",
"message": "Campaign status changed while resuming; fetch it and try again"
}
}
/v1/campaigns/{campaignId}/resumeTarget server for requests. Edit to use your own host.
Platform API key (sk_user_...) or Workspace API key (sk_...)
Campaign ID
The media type of the request body
Also move finished leads back into the sequence when steps were added after they completed. Replied leads are never re-engaged.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)
Path Parameters
Campaign ID
Body
Also move finished leads back into the sequence when steps were added after they completed. Replied leads are never re-engaged.