List Message Templates
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 incorrectMessage templates
List Message Templates
Lists the team’s library message templates, newest first.
GET
/
message-templates
List Message Templates
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
The library is what the Templates page (Templates > Emails) shows: whole
reusable messages saved from that page or from an editor, usable as a step on
any channel, an inbox reply or an extension message. Campaign step bodies are
not part of it — read a campaign’s steps with
Get campaign sequences.
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
Query Parameters
Was this page helpful?