Delete Step
curl --request DELETE \
--url https://app-api.walead.ai/api/v1/campaigns/{id}/steps/{stepId} \
--header 'x-api-key: <api-key>'import requests
url = "https://app-api.walead.ai/api/v1/campaigns/{id}/steps/{stepId}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://app-api.walead.ai/api/v1/campaigns/{id}/steps/{stepId}', 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}/steps/{stepId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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}/steps/{stepId}"
req, _ := http.NewRequest("DELETE", 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.delete("https://app-api.walead.ai/api/v1/campaigns/{id}/steps/{stepId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app-api.walead.ai/api/v1/campaigns/{id}/steps/{stepId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"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>"
}Sequences
Delete Step from Campaign
Removes a step from the campaign sequence
DELETE
/
v1
/
campaigns
/
{id}
/
steps
/
{stepId}
Delete Step
curl --request DELETE \
--url https://app-api.walead.ai/api/v1/campaigns/{id}/steps/{stepId} \
--header 'x-api-key: <api-key>'import requests
url = "https://app-api.walead.ai/api/v1/campaigns/{id}/steps/{stepId}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://app-api.walead.ai/api/v1/campaigns/{id}/steps/{stepId}', 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}/steps/{stepId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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}/steps/{stepId}"
req, _ := http.NewRequest("DELETE", 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.delete("https://app-api.walead.ai/api/v1/campaigns/{id}/steps/{stepId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app-api.walead.ai/api/v1/campaigns/{id}/steps/{stepId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"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
Removes a step from your campaign sequence. This is a destructive action that cannot be undone, so use with caution.What Happens When You Delete a Step
- Step is removed: The step and all its variants are permanently deleted
- Sequence is reordered: Steps after the deleted one move up in order
- Leads are adjusted: Leads already in the campaign have their progress updated
- Completed leads checked: If leads had completed the campaign, they may be reset if the deletion creates new steps to execute
Impact on Active Campaigns
If you delete a step from an active campaign:- Leads who haven’t reached this step will skip it
- Leads currently at this step will move to the next one
- Leads who have passed this step are unaffected (unless they were marked as completed)
Response
Returns the updated array of steps after deletion, reflecting the new sequence order.Important Notes
Deleting a step cannot be undone. Consider pausing the campaign first if you’re testing sequence changes.
If you want to temporarily disable a step, consider disabling all its variants instead of deleting the entire step.
Before Deleting
Consider:- Are there leads currently at this step?
- Do you want to preserve the message templates for future use?
- Would pausing or disabling variants be a better option?