curl --request POST \
--url https://api.upliftai.org/v1/campaigns/{campaignId}/pause \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.upliftai.org/v1/campaigns/{campaignId}/pause"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upliftai.org/v1/campaigns/{campaignId}/pause', 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.upliftai.org/v1/campaigns/{campaignId}/pause",
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.upliftai.org/v1/campaigns/{campaignId}/pause"
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.upliftai.org/v1/campaigns/{campaignId}/pause")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.upliftai.org/v1/campaigns/{campaignId}/pause")
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{
"campaignId": "6bea26ad-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"organizationId": "a12b7e74-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"projectId": "c782a4ec-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Shifa Clinic appointment reminders",
"state": "paused",
"config": {
"assistant": {
"assistantId": "26932cc0-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"dialing": {
"lines": 1,
"fromNumber": "+924238900001"
}
},
"trigger": {
"kind": "list"
},
"steps": [
"call"
],
"currentRunId": "21948771-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"runStartedAt": "2026-08-18T05:17:13.241Z",
"mode": "continuous",
"createdAt": "2026-08-18T05:17:02.013Z",
"updatedAt": "2026-08-18T05:17:17.720Z",
"version": 4
}{
"message": "invalid authorization",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Realtime assistant not found: 00000000-0000-4000-8000-000000000000",
"error": "Not Found",
"statusCode": 404
}{
"message": "illegal campaign transition: draft --pause-->",
"error": "Conflict",
"statusCode": 409
}Pause campaign dialing
The dialer stops claiming new contacts, but calls already in flight run to the end — expect live calls for a few more minutes. Only a running campaign can pause; anything else, a second pause included, is a 409.
curl --request POST \
--url https://api.upliftai.org/v1/campaigns/{campaignId}/pause \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.upliftai.org/v1/campaigns/{campaignId}/pause"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upliftai.org/v1/campaigns/{campaignId}/pause', 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.upliftai.org/v1/campaigns/{campaignId}/pause",
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.upliftai.org/v1/campaigns/{campaignId}/pause"
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.upliftai.org/v1/campaigns/{campaignId}/pause")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.upliftai.org/v1/campaigns/{campaignId}/pause")
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{
"campaignId": "6bea26ad-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"organizationId": "a12b7e74-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"projectId": "c782a4ec-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Shifa Clinic appointment reminders",
"state": "paused",
"config": {
"assistant": {
"assistantId": "26932cc0-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"dialing": {
"lines": 1,
"fromNumber": "+924238900001"
}
},
"trigger": {
"kind": "list"
},
"steps": [
"call"
],
"currentRunId": "21948771-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"runStartedAt": "2026-08-18T05:17:13.241Z",
"mode": "continuous",
"createdAt": "2026-08-18T05:17:02.013Z",
"updatedAt": "2026-08-18T05:17:17.720Z",
"version": 4
}{
"message": "invalid authorization",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Realtime assistant not found: 00000000-0000-4000-8000-000000000000",
"error": "Not Found",
"statusCode": 404
}{
"message": "illegal campaign transition: draft --pause-->",
"error": "Conflict",
"statusCode": 409
}Authorizations
Project API key (sk_api_…).
Path Parameters
Response
The campaign, now paused.
120Where the campaign is in its lifecycle:
draft— created, nothing dialsscheduled— the platform launches it atconfig.schedule.scheduledForlaunching— the contact list is being materialized into a run; transientlaunch_failed— materialization failed;lastErrorsays which phase, and launching again retries itrunning— the dialer is placing callspaused— no new dials; calls already in flight run to their enddraining— closed to new work, waiting only on in-flight callscompleted— terminal
draft, scheduled, launching, launch_failed, running, paused, draining, completed Fixed at create. bounded snapshots the contact list at launch and completes itself once the queue empties; continuous keeps accepting appended contacts and completes only after a close. Absent on older campaigns; read that as bounded.
bounded, continuous Returned exactly as stored — a section never set is absent rather than filled in with defaults.
Show child attributes
Show child attributes
When the campaign was closed to new work. Continuous campaigns only; closing does not change state, so expect running until the drain begins.
The single run created at first launch; a retried launch reuses it.
First launch. Unchanged by pauses, resumes and launch retries.
Why the last launch failed. Cleared by a launch that gets further.
Show child attributes
Show child attributes
Set when the platform acts on its own, and says why. Expect Paused: out of credits, or Paused: assistant version not found when the campaign's assistant was deleted. The assistant can't be changed after launch, so a resume won't fix that one. Cleared on resume.
"Paused: out of credits"
True once any call has been graded, after which config.scorecard is frozen. Absent until then.
How the campaign takes work. Always {"kind": "list"} today.
Show child attributes
Show child attributes
What each contact goes through. Always ["call"] today.
Increments on every accepted write — compare it across reads to tell a real change from an unchanged poll.
