Get Campaign by ID
curl --request GET \
--url https://app-api.walead.ai/api/v1/campaigns/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://app-api.walead.ai/api/v1/campaigns/{id}"
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://app-api.walead.ai/api/v1/campaigns/{id}', 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://app-api.walead.ai/api/v1/campaigns/{id}",
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://app-api.walead.ai/api/v1/campaigns/{id}"
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://app-api.walead.ai/api/v1/campaigns/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app-api.walead.ai/api/v1/campaigns/{id}")
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{
"id": "<string>",
"name": "<string>",
"status": "active",
"progress": 123,
"createdAt": "2023-11-07T05:31:56Z",
"settings": {},
"coreVariables": {},
"customVariables": {},
"linkedinAccounts": [
"<string>"
],
"analytics": {
"acceptanceRate": 123,
"responseRate": 123,
"totalLeads": 123
},
"steps": [
{
"id": "<string>",
"type": "invitation",
"order": 123,
"delay": 123,
"stopOnReply": true,
"genericBody": "<string>",
"variants": [
{
"id": "<string>",
"body": "<string>",
"order": 123,
"isDisabled": true,
"icpDefinitionRaw": "<string>",
"stepId": "<string>",
"aiTools": [
{
"name": "<string>",
"key": "<string>"
}
]
}
]
}
]
}{
"statusCode": 123,
"message": "<string>"
}{
"statusCode": 123,
"message": "<string>"
}Campaigns
Get Campaign by ID
Retrieves a single campaign by its ID
GET
/
v1
/
campaigns
/
{id}
Get Campaign by ID
curl --request GET \
--url https://app-api.walead.ai/api/v1/campaigns/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://app-api.walead.ai/api/v1/campaigns/{id}"
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://app-api.walead.ai/api/v1/campaigns/{id}', 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://app-api.walead.ai/api/v1/campaigns/{id}",
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://app-api.walead.ai/api/v1/campaigns/{id}"
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://app-api.walead.ai/api/v1/campaigns/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app-api.walead.ai/api/v1/campaigns/{id}")
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{
"id": "<string>",
"name": "<string>",
"status": "active",
"progress": 123,
"createdAt": "2023-11-07T05:31:56Z",
"settings": {},
"coreVariables": {},
"customVariables": {},
"linkedinAccounts": [
"<string>"
],
"analytics": {
"acceptanceRate": 123,
"responseRate": 123,
"totalLeads": 123
},
"steps": [
{
"id": "<string>",
"type": "invitation",
"order": 123,
"delay": 123,
"stopOnReply": true,
"genericBody": "<string>",
"variants": [
{
"id": "<string>",
"body": "<string>",
"order": 123,
"isDisabled": true,
"icpDefinitionRaw": "<string>",
"stepId": "<string>",
"aiTools": [
{
"name": "<string>",
"key": "<string>"
}
]
}
]
}
]
}{
"statusCode": 123,
"message": "<string>"
}{
"statusCode": 123,
"message": "<string>"
}Overview
Retrieves a single campaign by its ID, including complete details about the campaign configuration, analytics, and message sequence. The campaign must belong to your workspace.What’s Included
This endpoint returns comprehensive campaign data:- Basic Info: ID, name, status, progress, creation date
- Configuration: Settings, core variables, custom variables
- LinkedIn Accounts: Associated account IDs
- Analytics: Acceptance rate, response rate, total leads
- Sequence: Complete array of steps with their message variants
Sequence Data
The response includes the full campaign sequence (steps and variants), making this endpoint ideal when you need both campaign metadata and the message flow. If you only need the sequence, use the dedicated Get Campaign Sequence endpoint instead. Each step in the sequence includes:- Step type (invitation, message, visit_profile, screener)
- Order and delay configuration
- Message variants for A/B testing (for message and screener steps)
- AI tools configuration per variant
Authorizations
Response
Campaign retrieved successfully