List Campaign Contacts
curl --request GET \
--url https://api.example.com/v1/campaigns/{id}/contactsimport requests
url = "https://api.example.com/v1/campaigns/{id}/contacts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/campaigns/{id}/contacts', 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/{id}/contacts",
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/{id}/contacts"
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/{id}/contacts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/campaigns/{id}/contacts")
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": {
"contacts": [
{
"contact_id": "<string>",
"full_name": "<string>",
"email": "<string>",
"status": "<string>",
"current_step": 123,
"added_at": "<string>",
"last_sent_at": "<string>"
}
]
},
"meta": {
"page": 123,
"per_page": 123,
"total": 123
}
}Campaigns
List Campaign Contacts
Retrieve the contacts currently enrolled in a campaign, with per-contact status
GET
/
v1
/
campaigns
/
{id}
/
contacts
List Campaign Contacts
curl --request GET \
--url https://api.example.com/v1/campaigns/{id}/contactsimport requests
url = "https://api.example.com/v1/campaigns/{id}/contacts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/campaigns/{id}/contacts', 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/{id}/contacts",
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/{id}/contacts"
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/{id}/contacts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/campaigns/{id}/contacts")
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": {
"contacts": [
{
"contact_id": "<string>",
"full_name": "<string>",
"email": "<string>",
"status": "<string>",
"current_step": 123,
"added_at": "<string>",
"last_sent_at": "<string>"
}
]
},
"meta": {
"page": 123,
"per_page": 123,
"total": 123
}
}Request
Path Parameters
string
required
The campaign’s unique ID (UUID)
Query Parameters
integer
default:"1"
Page number for pagination
integer
default:"50"
Number of contacts per page (max: 100)
string
Filter by enrollment status:
pending, active, paused, completed, bounced, unsubscribed, or repliedHeaders
Authorization: Bearer wbk_your_api_key_here
Requires an API key with the
campaigns:read permission.Response
object
Show properties
Show properties
array
Enrolled contacts, newest first.
curl "https://data.leadlex.com/functions/v1/api-gateway/v1/campaigns/cmp_abc123/contacts?status=active" \
-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"
CAMPAIGN_ID = "cmp_abc123"
response = requests.get(
f"{BASE_URL}/v1/campaigns/{CAMPAIGN_ID}/contacts",
headers={"Authorization": f"Bearer {API_KEY}"},
params={"status": "active"},
)
const CAMPAIGN_ID = 'cmp_abc123';
const response = await fetch(
`https://data.leadlex.com/functions/v1/api-gateway/v1/campaigns/${CAMPAIGN_ID}/contacts?status=active`,
{ headers: { 'Authorization': 'Bearer wbk_your_api_key_here' } }
);
Example Response
{
"data": {
"contacts": [
{
"contact_id": "123e4567-e89b-12d3-a456-426614174000",
"full_name": "Jane Doe",
"email": "jane@example.com",
"status": "active",
"current_step": 2,
"added_at": "2026-04-01T09:00:00Z",
"last_sent_at": "2026-04-15T09:00:00Z"
}
]
},
"meta": { "page": 1, "per_page": 50, "total": 147 }
}
Errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing campaigns:read permission |
| 404 | campaign_not_found | No campaign with this ID |
| 429 | rate_limited | Rate limit exceeded |