List Message Template Tags
curl --request GET \
--url https://api.lemlist.com/api/message-templates/tags \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/message-templates/tags"
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/tags', 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/tags")
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/tags",
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": [
{
"name": "follow-up"
},
{
"name": "pricing"
}
],
"meta": {
"pagination": {
"page": 1,
"limit": 50,
"totalRecords": 1,
"totalPages": 1
}
}
}{
"error": "Validation error",
"code": "VALIDATION_ERROR"
}"The authentication you supplied is incorrect"Message templates
List Message Template Tags
Lists the distinct tags of the team’s library message templates, alphabetically.
GET
/
message-templates
/
tags
List Message Template Tags
curl --request GET \
--url https://api.lemlist.com/api/message-templates/tags \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/message-templates/tags"
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/tags', 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/tags")
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/tags",
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": [
{
"name": "follow-up"
},
{
"name": "pricing"
}
],
"meta": {
"pagination": {
"page": 1,
"limit": 50,
"totalRecords": 1,
"totalPages": 1
}
}
}{
"error": "Validation error",
"code": "VALIDATION_ERROR"
}"The authentication you supplied is incorrect"
Use it to discover the values
tags accepts on
List message templates.
Tags are stored trimmed and lowercased; pass them back as returned.
search matches inside the tag, case-insensitive, accents folded on
a c e i n o u y. userIds keeps the tags of those creators’ templates only.
Each item is an object ({ "name": "follow-up" }) so a per-tag count can be
added later without changing the contract.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.
Maximum string length:
100Keep 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
Required range:
x >= 1Number of items per page. Maximum value: 100
Required range:
1 <= x <= 100Was this page helpful?