List SMS Templates
curl --request GET \
--url https://{master_domain}/api/admin/v1/sms-templates \
--header 'Authorization: Bearer <token>'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));<?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;
}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();require 'uri'
require 'net/http'
url = URI("https://{master_domain}/api/admin/v1/sms-templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}
]
}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
/
sms-templates
List SMS Templates
curl --request GET \
--url https://{master_domain}/api/admin/v1/sms-templates \
--header 'Authorization: Bearer <token>'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));<?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;
}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();require 'uri'
require 'net/http'
url = URI("https://{master_domain}/api/admin/v1/sms-templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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 July 12, 2026
Related topics
Admin API Reference - SMS, Domains, and Device ManagementList Outbound SMS QueueUpdate SMS TemplateSMS Center - Parsing Templates and Auto-VerificationGet Pending Outbound SMSWas this page helpful?
⌘I