List SMS Templates
curl --request GET \
--url https://{master_domain}/api/admin/v1/sms-templates \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{master_domain}/api/admin/v1/sms-templates",
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;
}import requests
url = "https://{master_domain}/api/admin/v1/sms-templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{master_domain}/api/admin/v1/sms-templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{master_domain}/api/admin/v1/sms-templates"
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://{master_domain}/api/admin/v1/sms-templates")
.header("Authorization", "Bearer <token>")
.asString();const url = 'https://{master_domain}/api/admin/v1/sms-templates';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"data": [
{
"id": 3,
"merchant_id": 1,
"gateway_slug": "bkash-personal",
"sender_pattern": "bKash",
"amount_regex": "received Tk ([0-9,.]+)",
"trx_id_regex": "TrxID ([A-Z0-9]+)",
"sender_regex": "from ([0-9]+)",
"priority": 1,
"status": "active",
"created_at": "2026-06-23T14:15:45Z",
"updated_at": null
}
]
}API Reference
List SMS Templates
Retrieves all SMS parsing templates configured for the brand, sorted by priority and creation date. These templates define the regex patterns used to match transaction information (like sender address, amount, and reference code) from incoming companion app payloads.
GET
https://{master_domain}/api/admin/v1
/
sms-templates
List SMS Templates
curl --request GET \
--url https://{master_domain}/api/admin/v1/sms-templates \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{master_domain}/api/admin/v1/sms-templates",
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;
}import requests
url = "https://{master_domain}/api/admin/v1/sms-templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{master_domain}/api/admin/v1/sms-templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{master_domain}/api/admin/v1/sms-templates"
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://{master_domain}/api/admin/v1/sms-templates")
.header("Authorization", "Bearer <token>")
.asString();const url = 'https://{master_domain}/api/admin/v1/sms-templates';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"data": [
{
"id": 3,
"merchant_id": 1,
"gateway_slug": "bkash-personal",
"sender_pattern": "bKash",
"amount_regex": "received Tk ([0-9,.]+)",
"trx_id_regex": "TrxID ([A-Z0-9]+)",
"sender_regex": "from ([0-9]+)",
"priority": 1,
"status": "active",
"created_at": "2026-06-23T14:15:45Z",
"updated_at": null
}
]
}Last modified on August 25, 2026
Related topics
SMS TemplatesUpdate SMS TemplateSMS CenterList Outbound SMS QueueSMS auto-verificationWas this page helpful?