Get All Campaigns
Retrieves a paginated list of campaigns for the current user with optional call count information.
GET
/
campaign
/
all
Get All Campaigns
curl --request GET \
--url https://prod-api.revenueable.ai/ca/api/v0/campaign/all \
--header 'X-API-KEY: <x-api-key>'import requests
url = "https://prod-api.revenueable.ai/ca/api/v0/campaign/all"
headers = {"X-API-KEY": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<x-api-key>'}};
fetch('https://prod-api.revenueable.ai/ca/api/v0/campaign/all', 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://prod-api.revenueable.ai/ca/api/v0/campaign/all",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <x-api-key>"
],
]);
$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://prod-api.revenueable.ai/ca/api/v0/campaign/all"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://prod-api.revenueable.ai/ca/api/v0/campaign/all")
.header("X-API-KEY", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod-api.revenueable.ai/ca/api/v0/campaign/all")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"campaigns": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Q4 Sales Campaign",
"campaign_status": "completed",
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-15T16:45:00Z",
"campaign_start_time": "2024-01-16T09:00:00Z",
"campaign_end_time": "2024-01-16T17:00:00Z",
"total_count": 150,
"registered_count": 120,
"completed_count": 85
}
],
"pagination": {
"total": 25,
"limit": 10,
"offset": 0
}
}{
"detail": "Invalid credentials"
}{
"detail": "An unexpected error occurred."
}Headers
(Required) Your Revenueable AI API key.
Example:
"7251cb4b-3373-43a4-844c-b27a1d45e0c9"
Query Parameters
Whether to include call count for each campaign (default: true).
Maximum number of campaigns to return (default: 10).
Required range:
1 <= x <= 1000Number of campaigns to skip for pagination (default: 0).
Required range:
x >= 0Previous
Get Call HistoryRetrieves the history of calls made through the Revenueable AI platform with optional filtering and pagination.
Next
⌘I
Get All Campaigns
curl --request GET \
--url https://prod-api.revenueable.ai/ca/api/v0/campaign/all \
--header 'X-API-KEY: <x-api-key>'import requests
url = "https://prod-api.revenueable.ai/ca/api/v0/campaign/all"
headers = {"X-API-KEY": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<x-api-key>'}};
fetch('https://prod-api.revenueable.ai/ca/api/v0/campaign/all', 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://prod-api.revenueable.ai/ca/api/v0/campaign/all",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <x-api-key>"
],
]);
$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://prod-api.revenueable.ai/ca/api/v0/campaign/all"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://prod-api.revenueable.ai/ca/api/v0/campaign/all")
.header("X-API-KEY", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod-api.revenueable.ai/ca/api/v0/campaign/all")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"campaigns": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Q4 Sales Campaign",
"campaign_status": "completed",
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-15T16:45:00Z",
"campaign_start_time": "2024-01-16T09:00:00Z",
"campaign_end_time": "2024-01-16T17:00:00Z",
"total_count": 150,
"registered_count": 120,
"completed_count": 85
}
],
"pagination": {
"total": 25,
"limit": 10,
"offset": 0
}
}{
"detail": "Invalid credentials"
}{
"detail": "An unexpected error occurred."
}