Get Team Sender Exclusions
curl --request GET \
--url https://api.lemlist.com/api/team/dynamic-sender-exclusions \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/team/dynamic-sender-exclusions"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lemlist.com/api/team/dynamic-sender-exclusions', 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/team/dynamic-sender-exclusions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.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/team/dynamic-sender-exclusions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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": {
"senders": [
{
"userId": "usr_T2wWj3GOt0hXms721",
"channels": [
{
"type": "email",
"id": "usm_oZOkr8H1oFjgvDI6J"
},
{
"type": "linkedin"
}
]
},
{
"userId": "usr_ll2LqAVvLk75ER9fv"
}
]
}
}The authentication you supplied is incorrectroute is available starting emailPro plan{
"error": "Route bad method",
"code": "ROUTE_BAD_METHOD"
}Senders
Get Team Sender Exclusions
Returns the senders that the dynamic sender strategies of the team cannot select.
GET
/
team
/
dynamic-sender-exclusions
Get Team Sender Exclusions
curl --request GET \
--url https://api.lemlist.com/api/team/dynamic-sender-exclusions \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/team/dynamic-sender-exclusions"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lemlist.com/api/team/dynamic-sender-exclusions', 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/team/dynamic-sender-exclusions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.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/team/dynamic-sender-exclusions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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": {
"senders": [
{
"userId": "usr_T2wWj3GOt0hXms721",
"channels": [
{
"type": "email",
"id": "usm_oZOkr8H1oFjgvDI6J"
},
{
"type": "linkedin"
}
]
},
{
"userId": "usr_ll2LqAVvLk75ER9fv"
}
]
}
}The authentication you supplied is incorrectroute is available starting emailPro plan{
"error": "Route bad method",
"code": "ROUTE_BAD_METHOD"
}This endpoint requires at least the Email Pro plan.
contactOwner, leadImporter or
customField:<fieldName>) takes the sender of each lead from the lead data.
The exclusion list removes senders, or some of their channels, from the senders
that the leads can select.
The team list applies to each dynamic campaign without a list of its own. To
read the list in force on one campaign, use
Get Campaign Sender Exclusions.
- An entry without
channelsexcludes the sender on every channel, also on the accounts that they connect later. - A user who left the team and a deleted account do not show.
- A team without a list returns
{ "data": { "senders": [] } }.
These endpoints need an API key linked to a user. A key not linked to a user
gets a
401.Authorizations
Was this page helpful?