List All Transactionals
curl --request GET \
--url https://api.minimo.it/public/v1/templates/email \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.minimo.it/public/v1/templates/email"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.minimo.it/public/v1/templates/email', 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://api.minimo.it/public/v1/templates/email",
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: Bearer <token>"
],
]);
$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://api.minimo.it/public/v1/templates/email"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.minimo.it/public/v1/templates/email")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.minimo.it/public/v1/templates/email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 1,
"name": "Order Confirmation",
"created": "2023-12-01T10:00:00Z",
"updated": "2023-12-04T15:30:00Z"
},
{
"id": 2,
"name": "Shipping Update",
"created": "2023-11-15T08:00:00Z",
"updated": "2023-12-01T12:45:00Z"
}
]
}{
"error": "Missing API client ID or API key"
}{
"message": "Company not found"
}Email
List Email Templates
Retrieve all email templates available in your Minimo account
GET
/
public
/
v1
/
templates
/
email
List All Transactionals
curl --request GET \
--url https://api.minimo.it/public/v1/templates/email \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.minimo.it/public/v1/templates/email"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.minimo.it/public/v1/templates/email', 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://api.minimo.it/public/v1/templates/email",
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: Bearer <token>"
],
]);
$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://api.minimo.it/public/v1/templates/email"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.minimo.it/public/v1/templates/email")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.minimo.it/public/v1/templates/email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 1,
"name": "Order Confirmation",
"created": "2023-12-01T10:00:00Z",
"updated": "2023-12-04T15:30:00Z"
},
{
"id": 2,
"name": "Shipping Update",
"created": "2023-11-15T08:00:00Z",
"updated": "2023-12-01T12:45:00Z"
}
]
}{
"error": "Missing API client ID or API key"
}{
"message": "Company not found"
}Overview
Get a list of all email templates you’ve created in the Minimo dashboard. Use this endpoint to:- Display available templates in your application
- Verify template IDs before sending emails
- Build template selection interfaces
- Audit your template library
Response Structure
The response includes template metadata:{
"data": [
{
"id": "tmpl_abc123",
"name": "Order Confirmation",
"subject": "Your order {{orderNumber}} is confirmed",
"status": "active",
"category": "transactional",
"createdAt": "2025-10-01T10:00:00Z",
"updatedAt": "2025-11-01T15:30:00Z",
"variables": ["orderNumber", "customerName", "total"]
},
{
"id": "tmpl_xyz789",
"name": "Welcome Email",
"subject": "Welcome to {{companyName}}!",
"status": "active",
"category": "marketing",
"createdAt": "2025-09-15T09:00:00Z",
"updatedAt": "2025-09-15T09:00:00Z",
"variables": ["companyName", "firstName"]
}
]
}
Template Categories
Templates can belong to different categories:| Category | Description | Examples |
|---|---|---|
transactional | Order-related, account notifications | Order confirmation, password reset |
marketing | Promotional campaigns | Product launch, newsletter |
automated | Triggered by user behavior | Welcome series, abandoned cart |
Template Status
| Status | Description |
|---|---|
active | Template is ready to use |
draft | Template is being edited |
archived | Template is no longer in use |
Only
active templates can be used with the Send Email Template endpoint.Use Cases
Template Selector UI
Build a dropdown to let users choose templates:async function loadTemplates() {
const response = await fetch('https://api.minimo.it/public/v1/templates/email', {
headers: {
Authorization: `Bearer ${apiKey}`,
},
});
const { data: templates } = await response.json();
// Filter only active templates
const activeTemplates = templates.filter((t) => t.status === 'active');
// Populate dropdown
const select = document.getElementById('template-select');
activeTemplates.forEach((template) => {
const option = document.createElement('option');
option.value = template.id;
option.textContent = template.name;
select.appendChild(option);
});
}
Validate Template ID
Before sending an email, verify the template exists:async function isValidTemplate(templateId) {
const response = await fetch('https://api.minimo.it/public/v1/templates/email', {
headers: {
Authorization: `Bearer ${apiKey}`,
},
});
const { data: templates } = await response.json();
return templates.some((t) => t.id === templateId && t.status === 'active');
}
Filtering (Coming Soon)
Future versions will support filtering:GET /public/v1/templates/email?category=transactional&status=active
Related Endpoints
- Send Email Template - Send emails using templates
- Get Email Template Stats - View template performance