Resume a campaign by ID. Only campaigns with status "paused" can be resumed.
curl --request POST \
--url https://{tenant_domain}/third-party/v1/whatsapp/campaigns/{id}/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenant_domain}/third-party/v1/whatsapp/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://{tenant_domain}/third-party/v1/whatsapp/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://{tenant_domain}/third-party/v1/whatsapp/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://{tenant_domain}/third-party/v1/whatsapp/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://{tenant_domain}/third-party/v1/whatsapp/campaigns/{id}/resume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant_domain}/third-party/v1/whatsapp/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{
"data": {
"id": 123,
"name": "<string>",
"agent_id": "<string>",
"wa_template_id": "<string>",
"components": [
{}
],
"start_at": "2023-01-01T12:00:00Z",
"send_from": "00:00:00",
"send_until": "23:59:59",
"assign_bot_id": 123,
"assign_user_id": 123,
"assign_folder_id": 123,
"assign_tag_id": 123,
"assign_group_id": 123,
"resume_at": "2023-01-01T12:00:00Z",
"finished_at": "2023-01-01T12:00:00Z",
"created_at": "2023-01-01T12:00:00Z",
"updated_at": "2023-01-01T12:00:00Z",
"recipients_count": 123,
"latest_statistics": {
"id": 123,
"campaign_id": 123,
"datetime": "2023-01-01T12:00:00Z",
"recipients_count": 123,
"to_send_count": 123,
"to_send_percent": 123,
"sent_count": 123,
"sent_percent": 123,
"delivered_count": 123,
"delivered_percent": 123,
"read_count": 123,
"read_percent": 123,
"error_count": 123,
"error_percent": 123
}
}
}whatsapp
Resume a campaign by ID. Only campaigns with status "paused" can be resumed.
Resuming will reset the message limit check.
POST
/
whatsapp
/
campaigns
/
{id}
/
resume
Resume a campaign by ID. Only campaigns with status "paused" can be resumed.
curl --request POST \
--url https://{tenant_domain}/third-party/v1/whatsapp/campaigns/{id}/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenant_domain}/third-party/v1/whatsapp/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://{tenant_domain}/third-party/v1/whatsapp/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://{tenant_domain}/third-party/v1/whatsapp/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://{tenant_domain}/third-party/v1/whatsapp/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://{tenant_domain}/third-party/v1/whatsapp/campaigns/{id}/resume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant_domain}/third-party/v1/whatsapp/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{
"data": {
"id": 123,
"name": "<string>",
"agent_id": "<string>",
"wa_template_id": "<string>",
"components": [
{}
],
"start_at": "2023-01-01T12:00:00Z",
"send_from": "00:00:00",
"send_until": "23:59:59",
"assign_bot_id": 123,
"assign_user_id": 123,
"assign_folder_id": 123,
"assign_tag_id": 123,
"assign_group_id": 123,
"resume_at": "2023-01-01T12:00:00Z",
"finished_at": "2023-01-01T12:00:00Z",
"created_at": "2023-01-01T12:00:00Z",
"updated_at": "2023-01-01T12:00:00Z",
"recipients_count": 123,
"latest_statistics": {
"id": 123,
"campaign_id": 123,
"datetime": "2023-01-01T12:00:00Z",
"recipients_count": 123,
"to_send_count": 123,
"to_send_percent": 123,
"sent_count": 123,
"sent_percent": 123,
"delivered_count": 123,
"delivered_percent": 123,
"read_count": 123,
"read_percent": 123,
"error_count": 123,
"error_percent": 123
}
}
}⌘I