curl --request GET \
--url https://api.lemlist.com/api/message-templates/{templateId} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/message-templates/{templateId}"
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/{templateId}', 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/{templateId}")
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/{templateId}",
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": "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"
}{
"error": "Validation error",
"code": "VALIDATION_ERROR"
}"The authentication you supplied is incorrect"{
"error": "Message template not found",
"code": "EMAIL_TEMPLATE_NOT_FOUND"
}Get Message Template
Returns one library message template with its body.
curl --request GET \
--url https://api.lemlist.com/api/message-templates/{templateId} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/message-templates/{templateId}"
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/{templateId}', 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/{templateId}")
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/{templateId}",
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": "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"
}{
"error": "Validation error",
"code": "VALIDATION_ERROR"
}"The authentication you supplied is incorrect"{
"error": "Message template not found",
"code": "EMAIL_TEMPLATE_NOT_FOUND"
}{{variables}} left raw: keep them as they
are when reusing the template in a step.
404 EMAIL_TEMPLATE_NOT_FOUND: only the team library is readable here.Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
The unique identifier of the message template, from GET /message-templates
Response
The message template
A library message template: a whole reusable message a user saved from the Templates page or an editor, usable as a step on any channel. Bodies are HTML as stored, with {{variables}} left raw.
Template identifier (etp_)
Name shown on the Templates page
Subject line; "" when none was set
HTML body, variables left as {{variable}}
CC addresses; [] when none was set
Tags, trimmed and lowercased; [] when none was set
Creator user id (usr_), see GET /team/members
Creation date
Was this page helpful?