Remove Step Sender
curl --request DELETE \
--url https://api.lemlist.com/api/sequences/{sequenceId}/steps/{stepId}/sender \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/sequences/{sequenceId}/steps/{stepId}/sender"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lemlist.com/api/sequences/{sequenceId}/steps/{stepId}/sender', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api.lemlist.com/api/sequences/{sequenceId}/steps/{stepId}/sender")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/sequences/{sequenceId}/steps/{stepId}/sender",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"step": {
"sequenceId": "seq_A1b2C3d4E5f6G7h8J",
"stepId": "stp_A1b2C3d4E5f6G7h8I",
"stepType": "email"
},
"senderPoolChange": {
"enabledChannelTypes": [
"email"
],
"disabledChannelTypes": []
}
}
}{
"error": "Wrong param id",
"code": "WRONG_PARAM_ID"
}The authentication you supplied is incorrectroute is available starting emailPro plan{
"error": "Step not found",
"code": "SEQUENCE_STEP_NOT_FOUND"
}{
"error": "Route bad method",
"code": "ROUTE_BAD_METHOD"
}{
"error": "A voice note step always has a forced sender. Force another sender instead",
"code": "SENDER_STEP_FORCED_ONLY"
}Sequences
Remove Step Sender
Removes the forced sender of a step.
DELETE
/
sequences
/
{sequenceId}
/
steps
/
{stepId}
/
sender
Remove Step Sender
curl --request DELETE \
--url https://api.lemlist.com/api/sequences/{sequenceId}/steps/{stepId}/sender \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/sequences/{sequenceId}/steps/{stepId}/sender"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lemlist.com/api/sequences/{sequenceId}/steps/{stepId}/sender', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api.lemlist.com/api/sequences/{sequenceId}/steps/{stepId}/sender")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/sequences/{sequenceId}/steps/{stepId}/sender",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"step": {
"sequenceId": "seq_A1b2C3d4E5f6G7h8J",
"stepId": "stp_A1b2C3d4E5f6G7h8I",
"stepType": "email"
},
"senderPoolChange": {
"enabledChannelTypes": [
"email"
],
"disabledChannelTypes": []
}
}
}{
"error": "Wrong param id",
"code": "WRONG_PARAM_ID"
}The authentication you supplied is incorrectroute is available starting emailPro plan{
"error": "Step not found",
"code": "SEQUENCE_STEP_NOT_FOUND"
}{
"error": "Route bad method",
"code": "ROUTE_BAD_METHOD"
}{
"error": "A voice note step always has a forced sender. Force another sender instead",
"code": "SENDER_STEP_FORCED_ONLY"
}A forced sender requires at least the Email Pro plan.
- The channel type of the step comes back into the sender pool, as in the
campaign editor.
senderPoolChangelists the channel types that the change enables or disables in the pool. It does not tell whether each sender has an account of the type: read the diagnostics with Get Campaign Senders. - On a running campaign, the pending tasks of the step move to a sender of the pool.
- A LinkedIn or WhatsApp voice note step always has a forced sender: the
endpoint answers
409. Use Set Step Sender to change it.
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
The unique identifier of the sequence
The unique identifier of the step
Response
Success
Show child attributes
Show child attributes
Was this page helpful?