List Campaigns
curl --request GET \
--url https://api.example.com/v1/campaignsimport requests
url = "https://api.example.com/v1/campaigns"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/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.example.com/v1/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.example.com/v1/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.example.com/v1/campaigns")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/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_body{
"data": {
"campaigns": [
{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"list_id": "<string>",
"created_at": "<string>",
"stats": {
"sent": 123,
"opened": 123,
"replied": 123
}
}
]
}
}Campaigns
List Campaigns
Retrieve all campaigns in your workspace
GET
/
v1
/
campaigns
List Campaigns
curl --request GET \
--url https://api.example.com/v1/campaignsimport requests
url = "https://api.example.com/v1/campaigns"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/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.example.com/v1/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.example.com/v1/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.example.com/v1/campaigns")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/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_body{
"data": {
"campaigns": [
{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"list_id": "<string>",
"created_at": "<string>",
"stats": {
"sent": 123,
"opened": 123,
"replied": 123
}
}
]
}
}Request
Headers
Authorization: Bearer wbk_your_api_key_here
Response
object
Show properties
Show properties
array
Array of campaign objects
curl https://data.leadlex.com/functions/v1/api-gateway/v1/campaigns \
-H "Authorization: Bearer wbk_your_api_key_here"
import requests
API_KEY = "wbk_your_api_key_here"
BASE_URL = "https://data.leadlex.com/functions/v1/api-gateway"
headers = {"Authorization": f"Bearer {API_KEY}"}
response = requests.get(f"{BASE_URL}/v1/campaigns", headers=headers)
campaigns = response.json()["data"]["campaigns"]
const response = await fetch(
'https://data.leadlex.com/functions/v1/api-gateway/v1/campaigns',
{
headers: { 'Authorization': 'Bearer wbk_your_api_key_here' }
}
);
const { data } = await response.json();
console.log(data.campaigns);
Example Response
{
"data": {
"campaigns": [
{
"id": "campaign-uuid-1",
"name": "Q1 Outreach",
"status": "active",
"list_id": "list-uuid-1",
"created_at": "2026-02-01T10:00:00Z",
"stats": {
"sent": 120,
"opened": 45,
"replied": 12
}
},
{
"id": "campaign-uuid-2",
"name": "Legal Tech Demo",
"status": "draft",
"list_id": "list-uuid-2",
"created_at": "2026-02-20T14:30:00Z",
"stats": {
"sent": 0,
"opened": 0,
"replied": 0
}
}
]
}
}
Campaign Statuses
| Status | Description |
|---|---|
draft | Campaign created but not started |
pending_approval | Sent to Lexi AI for review |
active | Currently sending emails |
paused | Temporarily stopped |
completed | All emails sent |
Errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid API key |
| 403 | insufficient_permissions | Missing read permission |
| 429 | rate_limited | Rate limit exceeded |