Push external signals
curl --request POST \
--url https://api.lemlist.com/api/watchlist/{watchListId}/external-signals \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.lemlist.com/api/watchlist/{watchListId}/external-signals"
payload = {}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.lemlist.com/api/watchlist/{watchListId}/external-signals', 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/watchlist/{watchListId}/external-signals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/watchlist/{watchListId}/external-signals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": "processed",
"signalId": "wls_ExAmPlE1234567890a",
"creditsConsumed": 0,
"entity": {
"type": "contact",
"id": "lea_ExAmPlE1234567890a",
"enriched": true
}
}
Signal Agents
Push external signals
Pushes a contact- or company-level external signal into a Signal Agent.
POST
/
watchlist
/
{watchListId}
/
external-signals
Push external signals
curl --request POST \
--url https://api.lemlist.com/api/watchlist/{watchListId}/external-signals \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.lemlist.com/api/watchlist/{watchListId}/external-signals"
payload = {}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.lemlist.com/api/watchlist/{watchListId}/external-signals', 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/watchlist/{watchListId}/external-signals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/watchlist/{watchListId}/external-signals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": "processed",
"signalId": "wls_ExAmPlE1234567890a",
"creditsConsumed": 0,
"entity": {
"type": "contact",
"id": "lea_ExAmPlE1234567890a",
"enriched": true
}
}
Create the external-signal agent from the lemlist app (Signal Agents → external signal) or with Create Signal Agent (type
externalSignalContact or externalSignalCompany). Its field mapping tells lemlist which key of your JSON body fills which field: push one flat JSON object keyed by those source keys, with Basic auth (empty username, API key as password) or ?access_token=<API key> when your tool cannot set headers. The contact / company format below only applies to an agent without a field mapping. External signals are free (creditsConsumed is always 0) and capped by the agent’s daily limit (default 50/day); over the cap, or when no matching entity is found, the signal is returned with status: "ignored".Authorizations
Path Parameters
Body
application/json
When the agent has a field mapping (externalSignalFieldMapping, always set for agents created in the app or through the API), send one flat JSON object keyed by the mapped source keys, e.g. { "linkedin_profile": "https://www.linkedin.com/in/john-doe", "plan": "enterprise" }; the contact / company / customFields format below is then ignored. That format only applies to agents without a field mapping.
Response
Signal processed or ignored. status is processed when a signal was created, or ignored when no matching entity was found or the agent's daily limit was reached. External signals are free, so creditsConsumed is always 0.
Was this page helpful?