List Templates
curl --request GET \
--url https://app.uselamina.ai/v1/templates \
--header 'x-api-key: <api-key>'import requests
url = "https://app.uselamina.ai/v1/templates"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.uselamina.ai/v1/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.uselamina.ai/v1/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 => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.uselamina.ai/v1/templates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.uselamina.ai/v1/templates")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.uselamina.ai/v1/templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "tmpl-product-launch",
"name": "Product Launch Hero",
"description": "Create high-impact hero visuals for product launches with lifestyle context and brand-aligned styling",
"category": "launch",
"suggestedModalities": [
"image",
"video"
],
"suggestedPlatforms": [
"instagram",
"facebook"
],
"isBuiltIn": true
},
{
"id": "tmpl-trend-ride",
"name": "Trend Rider",
"description": "Quickly create on-trend content that capitalizes on emerging visual and topical trends",
"category": "trend",
"suggestedModalities": [
"image"
],
"suggestedPlatforms": [
"instagram",
"tiktok"
],
"isBuiltIn": true
}
]
}{
"error": "Invalid API key"
}"Too many requests from this IP, please try again in a minute"Create
List Templates
List available content templates (both built-in and custom workspace templates). Templates provide structured guidance for content creation — prompt directives, negative prompts, winning patterns, test ideas, and multi-asset compositions.
Use templates with POST /v1/content/create by passing the template id
as the templateId field. The content endpoint will apply the template’s
guidance to the content creation process.
Template categories:
launch— New product or feature launchestrend— Capitalizing on trending content patternscampaign— Campaign-specific content strategiesoptimization— Improving existing content performancetesting— A/B testing and experimentation strategieslibrary— General-purpose content patterns
GET
/
v1
/
templates
List Templates
curl --request GET \
--url https://app.uselamina.ai/v1/templates \
--header 'x-api-key: <api-key>'import requests
url = "https://app.uselamina.ai/v1/templates"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.uselamina.ai/v1/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.uselamina.ai/v1/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 => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.uselamina.ai/v1/templates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.uselamina.ai/v1/templates")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.uselamina.ai/v1/templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "tmpl-product-launch",
"name": "Product Launch Hero",
"description": "Create high-impact hero visuals for product launches with lifestyle context and brand-aligned styling",
"category": "launch",
"suggestedModalities": [
"image",
"video"
],
"suggestedPlatforms": [
"instagram",
"facebook"
],
"isBuiltIn": true
},
{
"id": "tmpl-trend-ride",
"name": "Trend Rider",
"description": "Quickly create on-trend content that capitalizes on emerging visual and topical trends",
"category": "trend",
"suggestedModalities": [
"image"
],
"suggestedPlatforms": [
"instagram",
"tiktok"
],
"isBuiltIn": true
}
]
}{
"error": "Invalid API key"
}"Too many requests from this IP, please try again in a minute"Returns content creation templates available to your workspace.
Templates are pre-configured starting points for common content types — product hero shots, social media posts, campaign banners, and more. Each template specifies a recommended app and pre-filled input values. Use this to offer quick-start options in your UI or to let agents pick the right template for a given content goal.
Authorizations
Workspace API key. Prefix: lma_. Example: lma_abc123...
Query Parameters
Filter templates by category.
Available options:
launch, trend, campaign, optimization, testing, library Response
List of available content templates
Show child attributes
Show child attributes