Skip to main content

Get Email Templates

Retrieve your saved Email Templates from IntelSend 🚀

This endpoint allows you to list email templates, with support for filters like search, sorting via column and direction, and pagination via page.


Why Retrieve Templates?

  • 📋 View all templates you’ve created
  • 🔍 Search & filter by name or content
  • 📑 Paginate through large template libraries
  • 🛠️ Manage easily by combining with create & delete APIs

Endpoint

GET https://beta.intelsend.com/api/template/?channel=email&column=""&direction=""&search=""&page=""

Example Request

curl --location 'https://beta.intelsend.com/api/template/?channel=email&column=%22%22&direction=%22%22&search=%22%22&page=%27%27' \
--header 'Cookie: __Secure-next-auth.session-token=<YOUR_SESSION_TOKEN>'

Example Response

{
"success": true,
"templates": [
{
"id": "tmpl_12345",
"templateName": "Welcome Email",
"subject": "Welcome to IntelSend!",
"channel": "email",
"createdAt": "2025-08-27T12:00:00Z"
},
{
"id": "tmpl_67890",
"templateName": "Promo Campaign",
"subject": "Special Offer Just for You",
"channel": "email",
"createdAt": "2025-08-25T10:15:00Z"
}
],
"page": 1,
"pageSize": 10,
"total": 2
}

Query Parameters

Query Parameters

ParameterTypeDescriptionRequiredDefault
channelstringSet to email to filter email templates.Yes-
columnstringColumn to sort by (e.g., templateName, createdAt). Leave empty for default sorting.No""
directionstringSort direction: asc or desc. Leave empty for default.No""
searchstringSearch term to filter templates by name or content. Leave empty for no filtering.No""
pageintPage number for pagination (starting from 1).No1