curl --request GET \
--url https://api.lemlist.com/api/tasks \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/tasks"
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/tasks', 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/tasks")
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/tasks",
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;
}{
"results": [
{
"_id": "opp_LyXDV8KHzctQdLFpG",
"type": "manual",
"title": "Keep an eye on him",
"priority": 1,
"leadId": "lea_fiDpiGV585wy3Oii2",
"campaignId": "cam_bSn8EORHQxbWPjHvu",
"contactId": "ctc_xW8Ou6C03Csv8vatp",
"dueDate": "2025-11-10T09:58:57.169Z",
"userId": "usr_ahfFktBBHUIxbVG5P",
"content": "does he have bandwidth to help us? would be grand"
},
{
"_id": "opp_KNQOrrlGnLvEXDDS9",
"type": "manual",
"title": "API Reference Illustration",
"priority": 2,
"dueDate": "2025-10-31T07:58:00.000Z",
"userId": "usr_ahfFktBBHUIxbVG5P",
"content": ""
}
],
"page": "0"
}"Bad team""The authentication you supplied is incorrect"Get Many Tasks
Retrieves all pending tasks assigned to your team members.
curl --request GET \
--url https://api.lemlist.com/api/tasks \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/tasks"
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/tasks', 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/tasks")
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/tasks",
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;
}{
"results": [
{
"_id": "opp_LyXDV8KHzctQdLFpG",
"type": "manual",
"title": "Keep an eye on him",
"priority": 1,
"leadId": "lea_fiDpiGV585wy3Oii2",
"campaignId": "cam_bSn8EORHQxbWPjHvu",
"contactId": "ctc_xW8Ou6C03Csv8vatp",
"dueDate": "2025-11-10T09:58:57.169Z",
"userId": "usr_ahfFktBBHUIxbVG5P",
"content": "does he have bandwidth to help us? would be grand"
},
{
"_id": "opp_KNQOrrlGnLvEXDDS9",
"type": "manual",
"title": "API Reference Illustration",
"priority": 2,
"dueDate": "2025-10-31T07:58:00.000Z",
"userId": "usr_ahfFktBBHUIxbVG5P",
"content": ""
}
],
"page": "0"
}"Bad team""The authentication you supplied is incorrect"Filtering
Use thefilters query parameter to narrow results by:
- Lead attributes:
fullName,email,phone,linkedin(supportsvalueorregex) - Campaign:
campaignId(supportsin/outarrays),campaignState(draft, running, ended, paused, errors, archived) - Task properties:
type(manual, phone, email, linkedin, etc.),assignedTo(userId) - Date range:
dueDate(supportsfrom/toin YYYY-MM-DD format)
[
{"filterId": "dueDate", "from": "2025-02-11", "to": "2025-02-28"},
{"filterId": "type", "in": ["phone", "linkedinSend"]}
]
[{"filterId": "assignedTo", "in": ["usr_abc123", "usr_def456"]}]
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
Page number for paginated results (0-indexed).
JSON array of filter objects. Each filter has a filterId and specific parameters.
Available Filters:
-
fullName: Filter by contact's full name.- Parameters:
value(string) orregex(string) - Example:
{"filterId":"fullName","value":"John Doe"}
- Parameters:
-
email: Filter by contact's email address.- Parameters:
value(string) orregex(string) - Example:
{"filterId":"email","value":"john@example.com"}
- Parameters:
-
phone: Filter by contact's phone number.- Parameters:
value(string) orregex(string) - Example:
{"filterId":"phone","value":"+1234567890"}
- Parameters:
-
linkedin: Filter by LinkedIn profile URL.- Parameters:
value(string) orregex(string) - Example:
{"filterId":"linkedin","value":"linkedin.com/in/johndoe"}
- Parameters:
-
campaignId: Filter by campaign IDs (inclusion/exclusion).- Parameters:
in(array of strings) and/orout(array of strings) - Example:
{"filterId":"campaignId","in":["cam_123"],"out":["cam_456"]}
- Parameters:
-
campaignState: Filter by campaign states.- Parameters:
in(array of strings) and/orout(array of strings) - Allowed values:
draft,running,ended,paused,errors,archived - Example:
{"filterId":"campaignState","in":["running","paused"]}
- Parameters:
-
type: Filter by task type.- Parameters:
in(array of strings) and/orout(array of strings) - Allowed values:
manual,phone,linkedinInvite,linkedinSend,linkedinVoiceNote,emailsReplied,opportunityReplied,linkedinReplied,opportunityClicked,email,whatsappMessage - Example:
{"filterId":"type","in":["phone","email"]}
- Parameters:
-
assignedTo: Filter by assigned user IDs.- Parameters:
in(array of strings) and/orout(array of strings) - Example:
{"filterId":"assignedTo","in":["usr_123","usr_456"]}
- Parameters:
-
dueDate: Filter by due date range.- Parameters:
from(string, YYYY-MM-DD) and/orto(string, YYYY-MM-DD) - Example:
{"filterId":"dueDate","from":"2025-01-01","to":"2025-12-31"}
- Parameters:
Multiple filters can be combined in an array.
Was this page helpful?