List SMS campaigns
curl --request GET \
--url https://api.nixflex.com/v1/sms/campaignsimport requests
url = "https://api.nixflex.com/v1/sms/campaigns"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.nixflex.com/v1/sms/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.nixflex.com/v1/sms/campaigns",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.nixflex.com/v1/sms/campaigns"
req, _ := http.NewRequest("GET", url, nil)
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.nixflex.com/v1/sms/campaigns")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nixflex.com/v1/sms/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodySMS
List SMS campaigns
GET /v1/sms/campaigns
GET
/
v1
/
sms
/
campaigns
List SMS campaigns
curl --request GET \
--url https://api.nixflex.com/v1/sms/campaignsimport requests
url = "https://api.nixflex.com/v1/sms/campaigns"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.nixflex.com/v1/sms/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.nixflex.com/v1/sms/campaigns",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.nixflex.com/v1/sms/campaigns"
req, _ := http.NewRequest("GET", url, nil)
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.nixflex.com/v1/sms/campaigns")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nixflex.com/v1/sms/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyReturns all SMS campaigns for your account, newest first. Each campaign includes computed delivery counts.
This is a summary view. Use Get SMS campaign for per-recipient details.
Request
curl https://api.nixflex.com/v1/sms/campaigns \
-H "Authorization: Bearer KEY_ID:KEY_SECRET"
# Only campaigns with a given status
curl "https://api.nixflex.com/v1/sms/campaigns?status=done" \
-H "Authorization: Bearer KEY_ID:KEY_SECRET"
Query parameters
| Parameter | Type | Notes |
|---|---|---|
status | enum | Filter by status. See values below |
limit | int | Optional. Return at most this many campaigns. No default and no cap |
Response
200 OK:
{
"campaigns": [
{
"campaign_id": "smsc_a1b2c3d4",
"name": "March promotion",
"agent_id": "agent_125207e452f8714a",
"from_number": "+447446466847",
"status": "done",
"total_count": 100,
"delivered_count": 95,
"failed_count": 3,
"pending_count": 2,
"source": "dashboard",
"created_at": "2026-05-17T03:45:12Z"
}
]
}
Campaign status values
| Status | Meaning |
|---|---|
draft | Created but not launched |
scheduled | Will launch at scheduled_at |
running | Currently sending |
done | All recipients processed |
failed | All recipients failed at submission |
Counts are computed live from per-recipient status. The same numbers appear in
the dashboard, the list endpoint, and the get-one endpoint.
⌘I