Get Campaign Settings
curl --request GET \
--url https://app.puffle.ai/api/campaigns/settings \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.puffle.ai/api/campaigns/settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.puffle.ai/api/campaigns/settings', 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://app.puffle.ai/api/campaigns/settings",
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://app.puffle.ai/api/campaigns/settings"
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://app.puffle.ai/api/campaigns/settings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.puffle.ai/api/campaigns/settings")
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{
"accounts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"provider_account_id": "<string>",
"is_premium": true,
"weekly_connection_limit": 4503599627370495,
"weekly_message_limit": 4503599627370495,
"display_name": "<string>",
"email_address": "<string>",
"status": "<string>",
"daily_limit": 4503599627370495,
"weekly_stats": {
"connections_sent": 4503599627370495,
"messages_sent": 4503599627370495
},
"limits": {
"weekly_connection_limit": 4503599627370495,
"weekly_message_limit": 4503599627370495,
"max_connection_limit": 4503599627370495,
"max_message_limit": 4503599627370495,
"recommended_connection_limit": 4503599627370495,
"recommended_message_limit": 4503599627370495
},
"is_default_sender": true,
"daily_stats": {
"sent": 4503599627370495,
"daily_limit": 4503599627370495
}
}
],
"schedules": [
"<unknown>"
],
"weekly_stats": [
"<unknown>"
]
}{
"error": "<string>"
}{
"error": "<string>"
}Outbound Settings
Get Campaign Settings
Return campaign settings for sender limits and pacing.
GET
/
api
/
campaigns
/
settings
Get Campaign Settings
curl --request GET \
--url https://app.puffle.ai/api/campaigns/settings \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.puffle.ai/api/campaigns/settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.puffle.ai/api/campaigns/settings', 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://app.puffle.ai/api/campaigns/settings",
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://app.puffle.ai/api/campaigns/settings"
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://app.puffle.ai/api/campaigns/settings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.puffle.ai/api/campaigns/settings")
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{
"accounts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"provider_account_id": "<string>",
"is_premium": true,
"weekly_connection_limit": 4503599627370495,
"weekly_message_limit": 4503599627370495,
"display_name": "<string>",
"email_address": "<string>",
"status": "<string>",
"daily_limit": 4503599627370495,
"weekly_stats": {
"connections_sent": 4503599627370495,
"messages_sent": 4503599627370495
},
"limits": {
"weekly_connection_limit": 4503599627370495,
"weekly_message_limit": 4503599627370495,
"max_connection_limit": 4503599627370495,
"max_message_limit": 4503599627370495,
"recommended_connection_limit": 4503599627370495,
"recommended_message_limit": 4503599627370495
},
"is_default_sender": true,
"daily_stats": {
"sent": 4503599627370495,
"daily_limit": 4503599627370495
}
}
],
"schedules": [
"<unknown>"
],
"weekly_stats": [
"<unknown>"
]
}{
"error": "<string>"
}{
"error": "<string>"
}CLI:
puffle campaign setting
Overview
Returns the campaign settings surface for the caller, including connected campaign-capable accounts, their current limits, and recent usage. Use this for settings screens and agent checks before changing limits.AI agent notes
Call this before changing campaign sender limits. Each account includes current usage, current limits, recommended limits, and maximum limits. Respect the returned maximums. Sender limits are account-level pacing controls, not per-campaign counters; changing them affects every campaign that can send through that account.Was this page helpful?
⌘I