Retrieve Transactional Detail and Statistics
curl --request GET \
--url https://api.minimo.it/public/v1/transactionals/{id}/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.minimo.it/public/v1/transactionals/{id}/stats"
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/transactionals/{id}/stats', 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/transactionals/{id}/stats",
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/transactionals/{id}/stats"
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/transactionals/{id}/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.minimo.it/public/v1/transactionals/{id}/stats")
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": {
"created": "2026-06-11T09:50:39.760Z",
"openRate": "0%",
"clickRate": "0%",
"totalMessagesSent": 1
}
}{
"error": "Missing API client ID or API key"
}{
"message": "Transactional not found"
}Email
Get Email Template Stats
View delivery, open, and click statistics for email templates
GET
/
public
/
v1
/
transactionals
/
{id}
/
stats
Retrieve Transactional Detail and Statistics
curl --request GET \
--url https://api.minimo.it/public/v1/transactionals/{id}/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.minimo.it/public/v1/transactionals/{id}/stats"
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/transactionals/{id}/stats', 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/transactionals/{id}/stats",
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/transactionals/{id}/stats"
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/transactionals/{id}/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.minimo.it/public/v1/transactionals/{id}/stats")
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": {
"created": "2026-06-11T09:50:39.760Z",
"openRate": "0%",
"clickRate": "0%",
"totalMessagesSent": 1
}
}{
"error": "Missing API client ID or API key"
}{
"message": "Transactional not found"
}Overview
Track the performance of your email templates with detailed analytics including:- Delivery volume: Total messages sent
- Engagement rates: Open rates and click rates
- Metadata: Creation timestamp
Use Cases
Monitor Template Performance
Monitor Template Performance
Track which templates have the best engagement:
const templates = await getTemplateList();
for (const template of templates) {
const response = await getTemplateStats(template.id);
const stats = response.data;
console.log(`${template.name}: ${stats.openRate} open rate`);
}
A/B Testing
A/B Testing
Compare performance between template variants:
const responseA = await getTemplateStats('tmpl_variant_a');
const responseB = await getTemplateStats('tmpl_variant_b');
const rateA = parseFloat(responseA.data.clickRate);
const rateB = parseFloat(responseB.data.clickRate);
if (rateB > rateA) {
console.log('Template B performs better');
}
Dashboard Widgets
Dashboard Widgets
Display real-time stats in your application:
async function updateDashboard() {
const response = await getTemplateStats('tmpl_welcome');
const stats = response.data;
document.getElementById('sent-count').textContent = stats.totalMessagesSent;
document.getElementById('open-rate').textContent = stats.openRate;
document.getElementById('click-rate').textContent = stats.clickRate;
}
Response Example
{
"data": {
"created": "2026-06-11T09:50:39.760Z",
"openRate": "0%",
"clickRate": "0%",
"totalMessagesSent": 1
}
}
Metrics Explained
| Metric | Type | Description |
|---|---|---|
created | string | Timestamp when the template/transactional message was created. |
openRate | string | Percentage of recipients who opened the message (e.g. “85%”). |
clickRate | string | Percentage of recipients who clicked a link in the message (e.g. “50%”). |
totalMessagesSent | integer | Total number of messages sent using this template. |
Best Practices
Monitoring Frequency
- High-volume templates: Check daily
- Moderate-volume: Check weekly
- Low-volume: Check monthly
Setting Alerts
Monitor for engagement drops:async function checkTemplateHealth(templateId) {
const response = await getTemplateStats(templateId);
const stats = response.data;
const openRate = parseFloat(stats.openRate);
if (openRate < 10) {
alert('Low open rate detected - review subject line and sender name!');
}
}
Improving Performance
Low open rate?- Test different subject lines
- Optimize send time
- Segment your audience better
- Make CTAs more prominent
- Reduce content complexity
- Test different button styles
Related Endpoints
- Send Email Template - Send emails with this template
- List Email Templates - View all templates
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique ID of the transactional message.
Example:
123
Response
Successful response with transactional detail and statistics.
Show child attributes
Show child attributes