Skip to main content

Get SMS Templates

Retrieve your saved SMS Templates from IntelSend πŸš€

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


Why Retrieve Templates?​

  • πŸ“‹ View all SMS 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=sms&column=""&direction=""&search=""&page=""

Example Request

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


Example Response

{
"success": true,
"templates": [
{
"id": "tmpl_12345",
"templateName": "Welcome SMS",
"body": "Hello {{NAME}}, welcome to IntelSend πŸš€",
"channel": "sms",
"createdAt": "2025-08-27T12:00:00Z"
},
{
"id": "tmpl_67890",
"templateName": "Promo SMS",
"body": "Hi {{NAME}}, don’t miss our special offer!",
"channel": "sms",
"createdAt": "2025-08-25T10:15:00Z"
}
],
"page": 1,
"pageSize": 10,
"total": 2
}

Query Parameters

ParameterTypeDescriptionRequiredDefault
channelstringSet to SMS to filter SMS 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