curl --request GET \
--url https://api.lemlist.com/api/message-templates \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/message-templates"
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/message-templates', 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/message-templates")
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/message-templates",
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": [
{
"_id": "etp_A1B2C3D4E5F6G7H8I",
"name": "Follow-up after demo",
"subject": "Next steps",
"message": "<p>Hi {{firstName}},</p><p>Thanks for your time yesterday.</p>",
"cc": [],
"tags": [
"follow-up"
],
"createdBy": "usr_A1B2C3D4E5F6G7H8I",
"createdAt": "2026-09-01T10:00:00.000Z"
}
],
"meta": {
"pagination": {
"page": 1,
"limit": 50,
"totalRecords": 1,
"totalPages": 1
}
}
}{
"error": "Validation error",
"code": "VALIDATION_ERROR"
}"The authentication you supplied is incorrect"List Message Templates
Lists the team’s library message templates, newest first.
curl --request GET \
--url https://api.lemlist.com/api/message-templates \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/message-templates"
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/message-templates', 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/message-templates")
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/message-templates",
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": [
{
"_id": "etp_A1B2C3D4E5F6G7H8I",
"name": "Follow-up after demo",
"subject": "Next steps",
"message": "<p>Hi {{firstName}},</p><p>Thanks for your time yesterday.</p>",
"cc": [],
"tags": [
"follow-up"
],
"createdBy": "usr_A1B2C3D4E5F6G7H8I",
"createdAt": "2026-09-01T10:00:00.000Z"
}
],
"meta": {
"pagination": {
"page": 1,
"limit": 50,
"totalRecords": 1,
"totalPages": 1
}
}
}{
"error": "Validation error",
"code": "VALIDATION_ERROR"
}"The authentication you supplied is incorrect"search is a substring match on the name only, case-insensitive; accented
a c e i n o u y match their plain letters (relance finds Rélance).
tags is any-of and userIds is any-of, both comma-separated or repeated.
Bodies are HTML as stored, with {{variables}} left raw.Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
Substring of the name, case-insensitive. Accented a, c, e, i, n, o, u, y match their plain letters (relance finds Rélance). Names only: bodies and subjects are not searched. Maximum 100 characters; a blank value is no filter.
100Keep the templates carrying any of these tags. Comma-separated; the parameter may also be repeated (?tags=a&tags=b), which keeps a comma inside a tag reachable. Tags are matched trimmed and lowercased, as the library stores them. Maximum 20.
Keep the items created by any of these users (usr_ ids, see GET /team/members). Comma-separated; the parameter may also be repeated. Maximum 100. Omit for every creator.
Page number to retrieve, starting at 1
x >= 1Number of items per page. Maximum value: 100
1 <= x <= 100Was this page helpful?