Campaigns
Cancel campaign
Stop a campaign for good. Calls under way finish; the contacts not yet called are cancelled and never called.
POST
/
v2
/
campaign
/
{id}
/
cancel
Cancel campaign
curl --request POST \
--url https://api.verbeo.ai/v2/campaign/{id}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v2/campaign/{id}/cancel"
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/v2/campaign/{id}/cancel', 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/v2/campaign/{id}/cancel",
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/v2/campaign/{id}/cancel"
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/v2/campaign/{id}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v2/campaign/{id}/cancel")
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_bodyStops a campaign for good. Calls already under way finish; every contact not yet called, or waiting for a retry, is marked
And the errors every route can give.
cancelled and never called. A cancelled campaign cannot be started again: create another one to call the same list.
Any campaign that is not completed or cancelled can be cancelled, a draft included. Cancelling a campaign while its contacts import stops the import. To stop only for a while, pause it instead.
Who may call it: any API key of the workspace; in the dashboard, an owner, admin or developer. Cancelling needs no Pro plan.
Path
Request
curl -X POST "https://api.verbeo.ai/v2/campaign/0175091d-2c3b-4aef-8c45-dbbe24f7b3ff/cancel" \
-H "Authorization: Bearer YOUR_API_KEY"
Response
200 OK with the campaign object, cancelled.
{
"success": true,
"data": {
"id": "0175091d-2c3b-4aef-8c45-dbbe24f7b3ff",
"status": "cancelled",
"completed_at": "2026-11-02T12:30:00.123456+00:00",
"…": "the rest of the campaign object"
}
}
Errors
| Code | Status | When |
|---|---|---|
CONFLICT | 409 | The campaign is finished already: This campaign is already completed., or This campaign is already cancelled. |
NOT_FOUND | 404 | Campaign not found. |
FORBIDDEN | 403 | A dashboard member below developer: Starting, pausing, resuming or cancelling a campaign requires the developer, admin or owner role. An API key acts as the owner and never gets it. |
INTERNAL_ERROR | 500 | The campaign could not be cancelled just now. Try again in a moment. |
Was this page helpful?
⌘I
Cancel campaign
curl --request POST \
--url https://api.verbeo.ai/v2/campaign/{id}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v2/campaign/{id}/cancel"
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/v2/campaign/{id}/cancel', 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/v2/campaign/{id}/cancel",
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/v2/campaign/{id}/cancel"
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/v2/campaign/{id}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v2/campaign/{id}/cancel")
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