curl --request GET \
--url https://api.lemlist.com/api/hooks \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/hooks"
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/hooks', 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/hooks")
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/hooks",
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;
}[
{
"_id": "hoo_Ib5jfViX9hn3FzNqr",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2018-06-05T09:07:07.761Z",
"zapId": 37709957,
"type": "emailsReplied",
"campaignId": "cam_FlN1hrYhADZUfspMs",
"isFirst": true
},
{
"_id": "hoo_SDRr2w4JigZDL7OB2",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2019-06-05T14:38:56.535Z",
"zapId": 59825555,
"type": "emailsReplied",
"campaignId": "cam_h3jptAEeqFFpve5mr"
},
{
"_id": "hoo_IYAPP4HnSyU7UTH3E",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2019-06-05T15:49:36.624Z",
"zapId": 59831776,
"type": "emailsReplied",
"campaignId": "cam_qBNYaIFXA77eXM1Ey",
"isFirst": true
},
{
"_id": "hoo_OQ1eCPucttlQV6uB4",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2019-06-05T19:28:49.130Z",
"zapId": 59852716,
"type": "emailsReplied",
"campaignId": "cam_vRotI1zB0rgqEe0Hg",
"isFirst": true
},
{
"_id": "hoo_bOucNGG13uJhhIQ8g",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2019-10-15T09:53:50.839Z",
"zapId": 47004696,
"type": "emailsOpened",
"campaignId": "cam_K6XNvvamP9QTotBC3"
},
{
"_id": "hoo_hZSI1GetoYUKu76TX",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2019-10-15T09:56:24.197Z",
"zapId": 47004696,
"type": "emailsOpened",
"campaignId": "cam_K6XNvvamP9QTotBC3"
},
{
"_id": "hoo_anErg4PUSFTd3r3dX",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2020-04-27T14:04:33.424Z",
"zapId": 85466371,
"type": "emailsReplied",
"campaignId": "cam_rpejDXyLkA2TSbXyC"
},
{
"_id": "hoo_Y3nL7UuQn85hIFTRV",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2020-04-27T14:06:38.375Z",
"zapId": 85466371,
"type": "emailsReplied",
"campaignId": "cam_rpejDXyLkA2TSbXyC"
},
{
"_id": "hoo_UAtwcPAd0tK9U6hKG",
"targetUrl": "https://example.com/webhooks/{id}",
"createdAt": "2022-02-10T16:45:28.216Z",
"campaignId": "cam_7BE8IZRaqahU44Wp6"
}
]"Bad team""Webhook not found"Get Many Webhooks
Retrieves all webhooks configured for your team.
curl --request GET \
--url https://api.lemlist.com/api/hooks \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/hooks"
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/hooks', 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/hooks")
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/hooks",
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;
}[
{
"_id": "hoo_Ib5jfViX9hn3FzNqr",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2018-06-05T09:07:07.761Z",
"zapId": 37709957,
"type": "emailsReplied",
"campaignId": "cam_FlN1hrYhADZUfspMs",
"isFirst": true
},
{
"_id": "hoo_SDRr2w4JigZDL7OB2",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2019-06-05T14:38:56.535Z",
"zapId": 59825555,
"type": "emailsReplied",
"campaignId": "cam_h3jptAEeqFFpve5mr"
},
{
"_id": "hoo_IYAPP4HnSyU7UTH3E",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2019-06-05T15:49:36.624Z",
"zapId": 59831776,
"type": "emailsReplied",
"campaignId": "cam_qBNYaIFXA77eXM1Ey",
"isFirst": true
},
{
"_id": "hoo_OQ1eCPucttlQV6uB4",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2019-06-05T19:28:49.130Z",
"zapId": 59852716,
"type": "emailsReplied",
"campaignId": "cam_vRotI1zB0rgqEe0Hg",
"isFirst": true
},
{
"_id": "hoo_bOucNGG13uJhhIQ8g",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2019-10-15T09:53:50.839Z",
"zapId": 47004696,
"type": "emailsOpened",
"campaignId": "cam_K6XNvvamP9QTotBC3"
},
{
"_id": "hoo_hZSI1GetoYUKu76TX",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2019-10-15T09:56:24.197Z",
"zapId": 47004696,
"type": "emailsOpened",
"campaignId": "cam_K6XNvvamP9QTotBC3"
},
{
"_id": "hoo_anErg4PUSFTd3r3dX",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2020-04-27T14:04:33.424Z",
"zapId": 85466371,
"type": "emailsReplied",
"campaignId": "cam_rpejDXyLkA2TSbXyC"
},
{
"_id": "hoo_Y3nL7UuQn85hIFTRV",
"targetUrl": "https://hooks.zapier.com/hooks/standard/{accountId}/{webhookId}/",
"createdAt": "2020-04-27T14:06:38.375Z",
"zapId": 85466371,
"type": "emailsReplied",
"campaignId": "cam_rpejDXyLkA2TSbXyC"
},
{
"_id": "hoo_UAtwcPAd0tK9U6hKG",
"targetUrl": "https://example.com/webhooks/{id}",
"createdAt": "2022-02-10T16:45:28.216Z",
"campaignId": "cam_7BE8IZRaqahU44Wp6"
}
]"Bad team""Webhook not found"disabled: true and stop firing, but still count toward the 200-webhook cap.
Count every entry returned here to know the room left before
Add Webhook answers 409.Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Response
Success
Unique webhook identifier
Destination URL for event notifications
Event type to listen for. Events are grouped by category — see the endpoint docs for a full breakdown.
contacted, hooked, attracted, warmed, interested, notInterested, emailsSent, emailsOpened, emailsClicked, emailsReplied, emailsBounced, emailsFailed, emailsInterested, emailsNotInterested, emailsUnsubscribed, entityUnsubscribed, variableUnsubscribed, linkedinSent, linkedinOpened, linkedinReplied, linkedinInterested, linkedinNotInterested, linkedinSendFailed, linkedinVisitDone, linkedinVisitFailed, linkedinFollowDone, linkedinFollowFailed, linkedinFollowSkipped, linkedinInviteDone, linkedinInviteFailed, linkedinInviteAccepted, linkedinEndorseDone, linkedinEndorseFailed, linkedinEndorseSkipped, linkedinVoiceNoteDone, linkedinVoiceNoteFailed, linkedinLikeLastPostDone, linkedinLikeLastPostNoPost, linkedinLikeLastPostFailed, linkedinWithdrawInvitationDone, linkedinWithdrawInvitationFailed, whatsappMessageSent, whatsappMessageDelivered, whatsappMessageOpened, whatsappReplied, whatsappMessageFailed, smsSent, smsDelivered, smsReplied, smsFailed, aircallCreated, aircallEnded, aircallDone, aircallInterested, aircallNotInterested, apiDone, apiInterested, apiNotInterested, apiFailed, manualInterested, manualNotInterested, paused, resumed, stopped, campaignComplete, customDomainErrors, connectionIssue, sendLimitReached, lemwarmPaused, annotated, enrichmentDone, enrichmentError, callRecordingDone, callTranscriptDone, inboxLabelUpdated, signalRegistered, deliverabilityAlertTriggered, contactSourcingDone, contactSourcingFailed The ID of the campaign the webhook is associated with (if any)
Creation timestamp
Zapier integration ID (if the destination is a Zapier webhook)
true when the webhook no longer fires. lemlist sets it automatically after a failed delivery, and it can also be toggled from the app. A disabled webhook still occupies one slot of the 200-webhook cap — delete it to free the slot.
Why the webhook was disabled. deliveryError means lemlist disabled it after a failed delivery. Absent when a user disabled it from the app.
deliveryError When the webhook was disabled
What the delivery that caused the deactivation ran into: the HTTP status your endpoint answered (404, 410) or the network error raised while reaching it (ENOTFOUND, ECONNREFUSED)
Was this page helpful?