curl --request GET \
--url https://your-instance.example.com/api/sms/providers/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://your-instance.example.com/api/sms/providers/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your-instance.example.com/api/sms/providers/config', 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://your-instance.example.com/api/sms/providers/config",
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://your-instance.example.com/api/sms/providers/config"
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://your-instance.example.com/api/sms/providers/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/sms/providers/config")
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{
"activeProvider": "twilio",
"providers": [
{
"provider": "twilio",
"isEnabled": true,
"isConfigured": true,
"twilioAccountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"twilioAuthToken": "••••••••••••••••••••••••••••••••",
"twilioMessagingServiceSid": "MGxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
{
"provider": "sinch",
"isEnabled": false,
"isConfigured": false
},
{
"provider": "textgrid",
"isEnabled": false,
"isConfigured": false
}
]
}{
"error": "Provider configuration not found"
}{
"error": "Provider configuration not found"
}{
"error": "Provider configuration not found"
}Get full SMS provider configuration
Returns every supported SMS provider with its current configuration and enabled state for the org. Requires SUPERADMIN — the body includes raw credentials (Twilio/Sinch/TextGrid keys), so the route is gated. Each entry reports isConfigured (credentials present) and isEnabled (configured AND not explicitly disabled).
curl --request GET \
--url https://your-instance.example.com/api/sms/providers/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://your-instance.example.com/api/sms/providers/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your-instance.example.com/api/sms/providers/config', 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://your-instance.example.com/api/sms/providers/config",
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://your-instance.example.com/api/sms/providers/config"
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://your-instance.example.com/api/sms/providers/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/sms/providers/config")
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{
"activeProvider": "twilio",
"providers": [
{
"provider": "twilio",
"isEnabled": true,
"isConfigured": true,
"twilioAccountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"twilioAuthToken": "••••••••••••••••••••••••••••••••",
"twilioMessagingServiceSid": "MGxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
{
"provider": "sinch",
"isEnabled": false,
"isConfigured": false
},
{
"provider": "textgrid",
"isEnabled": false,
"isConfigured": false
}
]
}{
"error": "Provider configuration not found"
}{
"error": "Provider configuration not found"
}{
"error": "Provider configuration not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
SUPERADMIN-only override of the target organization.
Response
SMS provider configuration
Response from GET /api/sms/providers/config.
One entry per supported provider — twilio, sinch, textgrid — regardless of whether it is configured. Frontends iterate this list to render the settings UI.
Show child attributes
Show child attributes
Currently-active provider for the org. May be null even when providers are configured but none has been promoted.
twilio, sinch, textgrid "twilio"