Campaigns
Resume a campaign
Moves a paused or credit_exhausted campaign back to running, re-validating caller IDs the same way start does. The balance is only re-checked when the campaign is in credit_exhausted — resuming from paused runs no credit check.
POST
/
campaigns
/
{id}
/
resume
Resume a campaign
curl --request POST \
--url https://api.vocobase.com/api/v2/campaigns/{id}/resume \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"concurrency_limit": 6,
"retry_concurrency": 2
}
'import requests
url = "https://api.vocobase.com/api/v2/campaigns/{id}/resume"
payload = {
"concurrency_limit": 6,
"retry_concurrency": 2
}
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({concurrency_limit: 6, retry_concurrency: 2})
};
fetch('https://api.vocobase.com/api/v2/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.vocobase.com/api/v2/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_POSTFIELDS => json_encode([
'concurrency_limit' => 6,
'retry_concurrency' => 2
]),
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.vocobase.com/api/v2/campaigns/{id}/resume"
payload := strings.NewReader("{\n \"concurrency_limit\": 6,\n \"retry_concurrency\": 2\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.vocobase.com/api/v2/campaigns/{id}/resume")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"concurrency_limit\": 6,\n \"retry_concurrency\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vocobase.com/api/v2/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>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"concurrency_limit\": 6,\n \"retry_concurrency\": 2\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"campaign_id": "cmp_7f3a1b02-4d5e-4c11-9a88-2e6f0c4d1a90",
"name": "March renewals",
"description": "Outbound renewal reminders",
"agent_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"agent_name": "Renewals Agent",
"provider": null,
"type": "outbound",
"phone_numbers": [
{
"phone_number_id": "pn_1c2d3e4f-5a6b-7c8d-9e0f-1a2b3c4d5e6f",
"phone_number": "+918065480085"
}
],
"concurrency_limit": 10,
"retry_concurrency": 3,
"retry_count": 2,
"cooldown_minutes": 60,
"retry_delays_minutes": [
30,
240
],
"callback_enabled": true,
"status": "running",
"total_contacts": 1420,
"completed_count": 918,
"failed_count": 61,
"skipped_count": 4,
"started_at": "2026-08-20T09:00:00.000Z",
"paused_at": null,
"completed_at": null,
"created_at": "2026-08-19T16:41:00.000Z"
}
}{
"success": false,
"error": {
"code": "INVALID_STATE",
"message": "Can only resume PAUSED or CREDIT_EXHAUSTED campaigns"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Retry after 60 seconds."
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}
}Authorizations
API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.
Path Parameters
Campaign ID.
Body
application/json
Optional. Calls dialled at once, clamped to 1–10 and further clamped at dispatch by your account concurrency limit. Omit to keep the campaign's current value.
Required range:
1 <= x <= 10Optional. Slots reserved for retries; must be between 0 and the resulting concurrency_limit. Omit to keep the campaign's current value.
Required range:
x >= 0⌘I
Resume a campaign
curl --request POST \
--url https://api.vocobase.com/api/v2/campaigns/{id}/resume \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"concurrency_limit": 6,
"retry_concurrency": 2
}
'import requests
url = "https://api.vocobase.com/api/v2/campaigns/{id}/resume"
payload = {
"concurrency_limit": 6,
"retry_concurrency": 2
}
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({concurrency_limit: 6, retry_concurrency: 2})
};
fetch('https://api.vocobase.com/api/v2/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.vocobase.com/api/v2/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_POSTFIELDS => json_encode([
'concurrency_limit' => 6,
'retry_concurrency' => 2
]),
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.vocobase.com/api/v2/campaigns/{id}/resume"
payload := strings.NewReader("{\n \"concurrency_limit\": 6,\n \"retry_concurrency\": 2\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.vocobase.com/api/v2/campaigns/{id}/resume")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"concurrency_limit\": 6,\n \"retry_concurrency\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vocobase.com/api/v2/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>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"concurrency_limit\": 6,\n \"retry_concurrency\": 2\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"campaign_id": "cmp_7f3a1b02-4d5e-4c11-9a88-2e6f0c4d1a90",
"name": "March renewals",
"description": "Outbound renewal reminders",
"agent_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"agent_name": "Renewals Agent",
"provider": null,
"type": "outbound",
"phone_numbers": [
{
"phone_number_id": "pn_1c2d3e4f-5a6b-7c8d-9e0f-1a2b3c4d5e6f",
"phone_number": "+918065480085"
}
],
"concurrency_limit": 10,
"retry_concurrency": 3,
"retry_count": 2,
"cooldown_minutes": 60,
"retry_delays_minutes": [
30,
240
],
"callback_enabled": true,
"status": "running",
"total_contacts": 1420,
"completed_count": 918,
"failed_count": 61,
"skipped_count": 4,
"started_at": "2026-08-20T09:00:00.000Z",
"paused_at": null,
"completed_at": null,
"created_at": "2026-08-19T16:41:00.000Z"
}
}{
"success": false,
"error": {
"code": "INVALID_STATE",
"message": "Can only resume PAUSED or CREDIT_EXHAUSTED campaigns"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Retry after 60 seconds."
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}
}