Skip to main content
GET
/
contacts
/
lists
Get Contact Lists
curl --request GET \
  --url https://api.lemlist.com/api/contacts/lists \
  --header 'Authorization: Basic <encoded-value>'
import requests

url = "https://api.lemlist.com/api/contacts/lists"

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/contacts/lists', 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/contacts/lists")

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/contacts/lists",
  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": "clt_abc123def456ghi78",
    "name": "Nurturing",
    "dynamic": false
  },
  {
    "_id": "clt_xyz789uvw012rst34",
    "name": "Enterprise Prospects",
    "dynamic": true
  }
]
"Bad team"
"The authentication you supplied is incorrect"
Returns all static and dynamic contact lists. Use the search parameter to filter lists by name. List IDs (clt_xxx) can be used with:
  • GET /contacts — filter contacts by list via the listId query parameter
  • POST /contacts/lists/{listId}/entities — add contacts to a list

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

Filter lists by name (case-insensitive partial match).

Response

Success

_id
string

Unique list ID (clt_xxx format)

name
string

Name of the contact list

dynamic
boolean

Whether the list is dynamic (auto-populated by filters) or static (manually managed)