curl --request GET \
--url https://pub-api.conversion.ai/api/v2/campaigns \
--header 'X-API-Key: <api-key>'import requests
url = "https://pub-api.conversion.ai/api/v2/campaigns"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://pub-api.conversion.ai/api/v2/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://pub-api.conversion.ai/api/v2/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 => [
"X-API-Key: <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://pub-api.conversion.ai/api/v2/campaigns"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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://pub-api.conversion.ai/api/v2/campaigns")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pub-api.conversion.ai/api/v2/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"campaigns": [
{
"id": "b7c8d9e0-f1a2-3456-bcde-f01234567890",
"name": "Q3 Field Events",
"type": {
"id": "3c9d2b1a-8e4f-4a6b-9c0d-2e3f4a5b6c7d",
"name": "Field Event",
"systemType": "CUSTOM"
},
"sfdcCampaignId": "701Ho00000AbCdEfGH",
"memberCount": 42,
"createdAt": "2026-05-01T12:00:00Z",
"updatedAt": "2026-06-11T09:30:00Z"
},
{
"id": "2d4e6f8a-1b3c-4d5e-8f9a-0b1c2d3e4f5a",
"name": "Product Launch Outreach",
"type": {
"id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d",
"name": "Outreach",
"systemType": "CUSTOM"
},
"sfdcCampaignId": null,
"memberCount": 0,
"createdAt": "2026-03-14T10:00:00Z",
"updatedAt": "2026-03-14T10:00:00Z"
}
]
},
"pagination": {
"nextCursor": null
}
}{
"error": {
"code": "invalid_cursor",
"message": "invalid pagination cursor"
}
}{
"error": {
"code": "unauthorized",
"message": "API key is required"
}
}{
"error": {
"code": "internal_error",
"message": "failed to load campaigns"
}
}List Campaigns
List your custom campaigns with their type, sfdcCampaignId, and member count. Only custom campaigns are exposed by this API; webinars and blasts are not returned. Archived campaigns are excluded. Member statuses are not included here; fetch them as type.statuses from GET /v2/campaigns/{campaignId}.
Results are paginated with an opaque cursor returned as pagination.nextCursor. Pass it back as the cursor query parameter to fetch the next page.
curl --request GET \
--url https://pub-api.conversion.ai/api/v2/campaigns \
--header 'X-API-Key: <api-key>'import requests
url = "https://pub-api.conversion.ai/api/v2/campaigns"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://pub-api.conversion.ai/api/v2/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://pub-api.conversion.ai/api/v2/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 => [
"X-API-Key: <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://pub-api.conversion.ai/api/v2/campaigns"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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://pub-api.conversion.ai/api/v2/campaigns")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pub-api.conversion.ai/api/v2/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"campaigns": [
{
"id": "b7c8d9e0-f1a2-3456-bcde-f01234567890",
"name": "Q3 Field Events",
"type": {
"id": "3c9d2b1a-8e4f-4a6b-9c0d-2e3f4a5b6c7d",
"name": "Field Event",
"systemType": "CUSTOM"
},
"sfdcCampaignId": "701Ho00000AbCdEfGH",
"memberCount": 42,
"createdAt": "2026-05-01T12:00:00Z",
"updatedAt": "2026-06-11T09:30:00Z"
},
{
"id": "2d4e6f8a-1b3c-4d5e-8f9a-0b1c2d3e4f5a",
"name": "Product Launch Outreach",
"type": {
"id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d",
"name": "Outreach",
"systemType": "CUSTOM"
},
"sfdcCampaignId": null,
"memberCount": 0,
"createdAt": "2026-03-14T10:00:00Z",
"updatedAt": "2026-03-14T10:00:00Z"
}
]
},
"pagination": {
"nextCursor": null
}
}{
"error": {
"code": "invalid_cursor",
"message": "invalid pagination cursor"
}
}{
"error": {
"code": "unauthorized",
"message": "API key is required"
}
}{
"error": {
"code": "internal_error",
"message": "failed to load campaigns"
}
}Authorizations
Your Conversion API key. Found in Settings > Integrations in the dashboard. Format: sk_live_<key_id>_<secret>.
Query Parameters
The maximum number of campaigns to return per page. Values outside [1, 100] are clamped rather than rejected.
1 <= x <= 100The opaque pagination cursor returned as pagination.nextCursor by a previous call. Omit to fetch the first page. An invalid or malformed cursor returns an invalid_cursor error.
Was this page helpful?