Get One Template
Retrieve the full details of a specific email template using its unique template ID.
🧾 Get One Template
Use this endpoint to fetch the name, HTML content, and screenshot of a selected template.
🔹 HTTP Request
GET API-URL/templates/TEMPLATE-UNIQUE-ID
🔸 URL Segments
Segment
Required
Description
TEMPLATE-UNIQUE-ID
Yes
Template unique ID which to retrieve.
🔐 Authorization Header
X-API-KEY: your-api-key-here
💻 PHP Example
// GET ONE ITEM
$response = $endpoint->getTemplate('TEMPLATE-UNIQUE-ID');
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
📦 Sample JSON Response
{
"status": "success",
"data": {
"record": {
"name": "summer_promo_template",
"content": "HTML content...",
"screenshot": "https:\/\/demo.com\/frontend\/assets\/gallery\/tpl9847xyz123\/img_preview.png"
}
}
}
Last updated