List automated SMS sets
Returns compact sets/templates, program association, trigger catalog and template validation results. include_template_content optionally includes bodies. Can lazily initialize disabled default SMS templates and hides the Journeys library when configured. The current authenticated sendblue response includes sensitive credential fields. Requires permission: one of manage_sms.
curl --request GET \
--url https://api.gratona.com/v1/admin/auto_sms \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/admin/auto_sms"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gratona.com/v1/admin/auto_sms', 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://api.gratona.com/v1/admin/auto_sms",
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://api.gratona.com/v1/admin/auto_sms"
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://api.gratona.com/v1/admin/auto_sms")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/auto_sms")
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{
"smssets": [
{
"id": 42,
"client_id": 42,
"name": "Education SMS templates",
"from_number": "+15551234567",
"sms_line_id": 42,
"created_at": "2026-10-20T12:00:00Z",
"updated_at": "2026-10-20T12:00:00Z",
"program_id": 42,
"program": {
"id": 42,
"client_id": 42,
"name": "Example"
},
"smstemplates": [
{
"id": 42,
"client_id": 42,
"smsset_id": 42,
"trigger": "pay_receipt",
"message": "Thank you for your [method] gift of [total_amount] to [designations] on [date].",
"variant_type": "default",
"disabled": 1
}
]
}
],
"template_errors": {},
"t_array": {},
"sendblue": {
"mode": "client_managed",
"enabled": true,
"default_sms_line_id": 42,
"default_from_number": "+15551234567",
"api_key_id": "REDACTED",
"api_secret_key": "REDACTED",
"callback_secret": "REDACTED",
"webhook_secret": "REDACTED",
"managed_subaccount_id": "Example",
"managed_provisioning_status": "inactive",
"requested_area_code": "Example",
"assigned_line_id": 42,
"assigned_number": "+15551234567",
"line_metadata": {},
"lines": [
{
"phone_number": "+15551234567",
"label": "Example",
"provider_line_id": "Example",
"line_role": "general",
"assigned_user_id": 42,
"visibility": "shared",
"status": "active",
"metadata": {}
}
]
}
}{
"message": "Unauthorized",
"status": "error"
}Authorizations
Passport bearer token authentication for legacy admin sessions.
Query Parameters
Include template message bodies in the compact list; defaults false.
Response
Operation result.
Show child attributes
Show child attributes
SMS-set-id to trigger validation map; empty state serializes as an array.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Authenticated organization Sendblue configuration. The current API includes credential values; treat this response as sensitive. Examples contain no real credentials.
Show child attributes
Show child attributes
curl --request GET \
--url https://api.gratona.com/v1/admin/auto_sms \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/admin/auto_sms"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gratona.com/v1/admin/auto_sms', 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://api.gratona.com/v1/admin/auto_sms",
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://api.gratona.com/v1/admin/auto_sms"
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://api.gratona.com/v1/admin/auto_sms")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/auto_sms")
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{
"smssets": [
{
"id": 42,
"client_id": 42,
"name": "Education SMS templates",
"from_number": "+15551234567",
"sms_line_id": 42,
"created_at": "2026-10-20T12:00:00Z",
"updated_at": "2026-10-20T12:00:00Z",
"program_id": 42,
"program": {
"id": 42,
"client_id": 42,
"name": "Example"
},
"smstemplates": [
{
"id": 42,
"client_id": 42,
"smsset_id": 42,
"trigger": "pay_receipt",
"message": "Thank you for your [method] gift of [total_amount] to [designations] on [date].",
"variant_type": "default",
"disabled": 1
}
]
}
],
"template_errors": {},
"t_array": {},
"sendblue": {
"mode": "client_managed",
"enabled": true,
"default_sms_line_id": 42,
"default_from_number": "+15551234567",
"api_key_id": "REDACTED",
"api_secret_key": "REDACTED",
"callback_secret": "REDACTED",
"webhook_secret": "REDACTED",
"managed_subaccount_id": "Example",
"managed_provisioning_status": "inactive",
"requested_area_code": "Example",
"assigned_line_id": 42,
"assigned_number": "+15551234567",
"line_metadata": {},
"lines": [
{
"phone_number": "+15551234567",
"label": "Example",
"provider_line_id": "Example",
"line_role": "general",
"assigned_user_id": 42,
"visibility": "shared",
"status": "active",
"metadata": {}
}
]
}
}{
"message": "Unauthorized",
"status": "error"
}