Campaigns
Resume / start campaign
Start a draft or scheduled campaign, or resume a paused one. The server picks the right action based on the campaign’s current status.
POST
/
campaigns
/
{id}
/
resume
Resume / start campaign
curl --request POST \
--url https://api.verbeo.ai/v1/campaigns/{id}/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v1/campaigns/{id}/resume"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.verbeo.ai/v1/campaigns/{id}/resume', 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.verbeo.ai/v1/campaigns/{id}/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.verbeo.ai/v1/campaigns/{id}/resume"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.verbeo.ai/v1/campaigns/{id}/resume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v1/campaigns/{id}/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyThis is the same single button the dashboard uses. The server looks at the campaign’s current status and:
See Campaigns overview and Errors for the standard envelope.
draftorscheduled→ starts the campaign.paused→ resumes the campaign from where it left off.
Path parameters
string
required
UUID of the campaign.
Request
curl -X POST "https://api.verbeo.ai/v1/campaigns/0175091d-2c3b-4aef-8c45-dbbe24f7b3ff/resume" \
-H "Authorization: Bearer YOUR_API_KEY"
await fetch(`https://api.verbeo.ai/v1/campaigns/${campaignId}/resume`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.VERBEO_API_KEY}` },
});
requests.post(
f"https://api.verbeo.ai/v1/campaigns/{campaign_id}/resume",
headers={"Authorization": f"Bearer {os.environ['VERBEO_API_KEY']}"},
)
Response
200 OK.
{
"success": true,
"data": {
"campaign_id": "0175091d-2c3b-4aef-8c45-dbbe24f7b3ff",
"status": "running"
}
}
Errors
| Code | Status | When it happens |
|---|---|---|
CAMPAIGN_NOT_FOUND | 404 | The campaign doesn’t exist in your workspace. |
INVALID_STATUS | 409 | The campaign is running, warmup, dormant, completed, or cancelled — only draft, scheduled, or paused campaigns can be resumed. |
ORCHESTRATOR_ERROR | 502 | Upstream campaign-orchestrator returned an unexpected error. |
Was this page helpful?
⌘I
Resume / start campaign
curl --request POST \
--url https://api.verbeo.ai/v1/campaigns/{id}/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v1/campaigns/{id}/resume"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.verbeo.ai/v1/campaigns/{id}/resume', 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.verbeo.ai/v1/campaigns/{id}/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.verbeo.ai/v1/campaigns/{id}/resume"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.verbeo.ai/v1/campaigns/{id}/resume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v1/campaigns/{id}/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body