SMS coverage
curl --request GET \
--url https://api.sendbaze.com/v1/sms/coverage \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sendbaze.com/v1/sms/coverage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendbaze.com/v1/sms/coverage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)require 'uri'
require 'net/http'
url = URI("https://api.sendbaze.com/v1/sms/coverage")
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<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sendbaze.com/v1/sms/coverage",
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.sendbaze.com/v1/sms/coverage"
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))
}{
"countries": [
{
"code": "ZA",
"name": "South Africa",
"dialCode": "+27",
"route": "southern-africa",
"available": true,
"enabled": true,
"pricing": "plan",
"priceRand": 1.2,
"provisional": true,
"notes": "<string>"
}
],
"enabled": [
"ZA"
],
"available": [
"ZA",
"BW",
"SZ",
"LS",
"NA"
],
"settingsUrl": "<string>"
}SMS
SMS coverage
Every country Sendbaze sends SMS to, with the route that carries it, the price per segment, whether the
route is live (available) and whether your organisation has enabled it (enabled). Sends to a country
that is not available answer 422 destination_not_supported; to one your organisation has not enabled,
403 destination_not_enabled with a settingsUrl. Requires read.
GET
/
v1
/
sms
/
coverage
SMS coverage
curl --request GET \
--url https://api.sendbaze.com/v1/sms/coverage \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sendbaze.com/v1/sms/coverage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendbaze.com/v1/sms/coverage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)require 'uri'
require 'net/http'
url = URI("https://api.sendbaze.com/v1/sms/coverage")
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<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sendbaze.com/v1/sms/coverage",
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.sendbaze.com/v1/sms/coverage"
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))
}{
"countries": [
{
"code": "ZA",
"name": "South Africa",
"dialCode": "+27",
"route": "southern-africa",
"available": true,
"enabled": true,
"pricing": "plan",
"priceRand": 1.2,
"provisional": true,
"notes": "<string>"
}
],
"enabled": [
"ZA"
],
"available": [
"ZA",
"BW",
"SZ",
"LS",
"NA"
],
"settingsUrl": "<string>"
}Authorizations
An API key from the dashboard. sk_live_… sends; sk_test_… validates and returns ids without sending.