List Campaign Steps
curl --request GET \
--url https://api.example.com/v1/campaigns/{id}/stepsimport requests
url = "https://api.example.com/v1/campaigns/{id}/steps"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/campaigns/{id}/steps', 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}/steps",
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}/steps"
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}/steps")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/campaigns/{id}/steps")
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": {
"steps": [
{
"id": "<string>",
"index": 123,
"subject": "<string>",
"body": "<string>",
"delay_days": 123,
"delay_hours": 123,
"send_condition": "<string>",
"created_at": "<string>"
}
]
}
}Campaigns
List Campaign Steps
Retrieve all sequence steps for a campaign in order
GET
/
v1
/
campaigns
/
{id}
/
steps
List Campaign Steps
curl --request GET \
--url https://api.example.com/v1/campaigns/{id}/stepsimport requests
url = "https://api.example.com/v1/campaigns/{id}/steps"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/campaigns/{id}/steps', 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}/steps",
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}/steps"
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}/steps")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/campaigns/{id}/steps")
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": {
"steps": [
{
"id": "<string>",
"index": 123,
"subject": "<string>",
"body": "<string>",
"delay_days": 123,
"delay_hours": 123,
"send_condition": "<string>",
"created_at": "<string>"
}
]
}
}Request
Path Parameters
string
required
The campaign’s unique ID (UUID)
Headers
Authorization: Bearer wbk_your_api_key_here
Requires an API key with the
campaigns:read permission. Steps are returned in send order (index 0 first).Response
object
Show properties
Show properties
array
Array of step objects in sequence order.
Show Step object
Show Step object
string
Step UUID
integer
Zero-based position in the sequence
string
Email subject line (supports merge variables like
{{first_name}})string
Email body (HTML or plain text)
integer
Days to wait after the previous step
integer
Additional hours to wait after the previous step
string
When to send:
always, if_no_reply, if_no_open, if_opened, if_clickedstring
ISO 8601 timestamp
curl https://data.leadlex.com/functions/v1/api-gateway/v1/campaigns/cmp_abc123/steps \
-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}/steps",
headers={"Authorization": f"Bearer {API_KEY}"},
)
steps = response.json()["data"]["steps"]
const CAMPAIGN_ID = 'cmp_abc123';
const response = await fetch(
`https://data.leadlex.com/functions/v1/api-gateway/v1/campaigns/${CAMPAIGN_ID}/steps`,
{ headers: { 'Authorization': 'Bearer wbk_your_api_key_here' } }
);
Example Response
{
"data": {
"steps": [
{
"id": "step_1",
"index": 0,
"subject": "Quick question about {{company_name}}",
"body": "Hi {{first_name}}, ...",
"delay_days": 0,
"delay_hours": 0,
"send_condition": "always",
"created_at": "2026-03-15T09:00:00Z"
},
{
"id": "step_2",
"index": 1,
"subject": "Re: {{company_name}}",
"body": "Just circling back ...",
"delay_days": 3,
"delay_hours": 0,
"send_condition": "if_no_reply",
"created_at": "2026-03-15T09:05:00Z"
}
]
}
}
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 |