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
| Parameter | Type | Description | Required | Default |
|---|---|---|---|---|
| channel | string | Set to SMS to filter SMS templates. | Yes | - |
| column | string | Column to sort by (e.g., templateName, createdAt). Leave empty for default sorting. | No | "" |
| direction | string | Sort direction: asc or desc. Leave empty for default. | No | "" |
| search | string | Search term to filter templates by name or content. Leave empty for no filtering. | No | "" |
| page | int | Page number for pagination (starting from 1). | No | 1 |