List campaigns
curl --request GET \
--url https://api.upliftai.org/v1/campaigns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.upliftai.org/v1/campaigns"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upliftai.org/v1/campaigns', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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"
req, _ := http.NewRequest("GET", 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.get("https://api.upliftai.org/v1/campaigns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.upliftai.org/v1/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"campaigns": [
{
"campaignId": "cb5401ef-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"organizationId": "a12b7e74-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"projectId": "c782a4ec-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Edversity admissions — September intake",
"state": "running",
"mode": "continuous",
"config": {
"goal": "lead",
"assistant": {
"assistantId": "0f4a91d3-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"contacts": {
"listId": "3b7f21ac-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"schedule": {
"callingWindow": {
"from": "10:00",
"to": "19:00",
"tz": "Asia/Karachi"
}
},
"dialing": {
"lines": 2,
"fromNumber": "+924238900100",
"retryPolicy": {
"maxAttempts": 3,
"retryOn": [
"no_answer",
"busy",
"voicemail"
],
"backoffMinutes": [
15,
120
]
}
}
},
"trigger": {
"kind": "list"
},
"steps": [
"call"
],
"currentRunId": "d1403129-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"runStartedAt": "2026-08-18T05:16:02.711Z",
"createdAt": "2026-08-18T05:15:56.059Z",
"updatedAt": "2026-08-18T05:16:02.725Z",
"version": 3
},
{
"campaignId": "521e8ca1-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"organizationId": "a12b7e74-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"projectId": "c782a4ec-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Shifa Clinic appointment reminders — 19 Aug",
"state": "launch_failed",
"mode": "bounded",
"config": {
"goal": "appointment"
},
"trigger": {
"kind": "list"
},
"steps": [
"call"
],
"currentRunId": "d6bf8d72-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"runStartedAt": "2026-08-18T05:16:20.122Z",
"lastError": {
"phase": "validate",
"message": "no contact list configured",
"at": "2026-08-18T05:16:22.287Z"
},
"createdAt": "2026-08-18T05:16:19.119Z",
"updatedAt": "2026-08-18T05:16:22.287Z",
"version": 5
},
{
"campaignId": "43150de2-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"organizationId": "a12b7e74-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"projectId": "c782a4ec-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Al-Falah credit card payment reminders",
"state": "draft",
"mode": "bounded",
"config": {},
"trigger": {
"kind": "list"
},
"steps": [
"call"
],
"createdAt": "2026-08-18T05:15:42.611Z",
"updatedAt": "2026-08-18T05:15:42.611Z",
"version": 1
}
],
"nextCursor": "eyJwayI6ImExMmI3ZTc0LXh4eHgjYzc4MmE0ZWMteHh4eCIsInNrIjoiNDMxNTBkZTIteHh4eC14eHh4LXh4eHgteHh4eHh4eHh4eHh4In0"
}{
"message": "Invalid pagination cursor",
"error": "Bad Request",
"statusCode": 400
}{
"message": "invalid authorization",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}Campaigns
List campaigns
Every campaign in the API key’s project, a page at a time.
GET
/
campaigns
List campaigns
curl --request GET \
--url https://api.upliftai.org/v1/campaigns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.upliftai.org/v1/campaigns"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upliftai.org/v1/campaigns', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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"
req, _ := http.NewRequest("GET", 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.get("https://api.upliftai.org/v1/campaigns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.upliftai.org/v1/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"campaigns": [
{
"campaignId": "cb5401ef-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"organizationId": "a12b7e74-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"projectId": "c782a4ec-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Edversity admissions — September intake",
"state": "running",
"mode": "continuous",
"config": {
"goal": "lead",
"assistant": {
"assistantId": "0f4a91d3-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"contacts": {
"listId": "3b7f21ac-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"schedule": {
"callingWindow": {
"from": "10:00",
"to": "19:00",
"tz": "Asia/Karachi"
}
},
"dialing": {
"lines": 2,
"fromNumber": "+924238900100",
"retryPolicy": {
"maxAttempts": 3,
"retryOn": [
"no_answer",
"busy",
"voicemail"
],
"backoffMinutes": [
15,
120
]
}
}
},
"trigger": {
"kind": "list"
},
"steps": [
"call"
],
"currentRunId": "d1403129-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"runStartedAt": "2026-08-18T05:16:02.711Z",
"createdAt": "2026-08-18T05:15:56.059Z",
"updatedAt": "2026-08-18T05:16:02.725Z",
"version": 3
},
{
"campaignId": "521e8ca1-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"organizationId": "a12b7e74-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"projectId": "c782a4ec-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Shifa Clinic appointment reminders — 19 Aug",
"state": "launch_failed",
"mode": "bounded",
"config": {
"goal": "appointment"
},
"trigger": {
"kind": "list"
},
"steps": [
"call"
],
"currentRunId": "d6bf8d72-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"runStartedAt": "2026-08-18T05:16:20.122Z",
"lastError": {
"phase": "validate",
"message": "no contact list configured",
"at": "2026-08-18T05:16:22.287Z"
},
"createdAt": "2026-08-18T05:16:19.119Z",
"updatedAt": "2026-08-18T05:16:22.287Z",
"version": 5
},
{
"campaignId": "43150de2-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"organizationId": "a12b7e74-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"projectId": "c782a4ec-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Al-Falah credit card payment reminders",
"state": "draft",
"mode": "bounded",
"config": {},
"trigger": {
"kind": "list"
},
"steps": [
"call"
],
"createdAt": "2026-08-18T05:15:42.611Z",
"updatedAt": "2026-08-18T05:15:42.611Z",
"version": 1
}
],
"nextCursor": "eyJwayI6ImExMmI3ZTc0LXh4eHgjYzc4MmE0ZWMteHh4eCIsInNrIjoiNDMxNTBkZTIteHh4eC14eHh4LXh4eHgteHh4eHh4eHh4eHh4In0"
}{
"message": "Invalid pagination cursor",
"error": "Bad Request",
"statusCode": 400
}{
"message": "invalid authorization",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}Authorizations
Project API key (sk_api_…).
Query Parameters
Campaigns per page. Above 100 is clamped to 100, and a value that isn't a positive number falls back to 50 instead of erroring.
The previous response's nextCursor. Opaque — pass it back unmodified.
Response
One page of campaigns.
Show child attributes
Show child attributes
Absent once the walk is done. A full page still carries a cursor and the last page can be empty, so keep paging until nextCursor disappears rather than until a page looks short. The list is read live, so a campaign created mid-walk can shift between pages.
