Get the organization’s SMS numbers, registrations and delivery problems
curl --request GET \
--url http://localhost:8080/sms/overview \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8080/sms/overview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8080/sms/overview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/sms/overview",
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 := "http://localhost:8080/sms/overview"
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("http://localhost:8080/sms/overview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/sms/overview")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"externallyManaged": true,
"channel": {
"fromNumber": "<string>",
"enabled": true
},
"numbers": [
{
"id": "<string>",
"phoneNumber": "<string>",
"countryCode": "<string>",
"numberType": "local",
"smsCapable": true,
"canReceive": true,
"sendStatus": "ready",
"registrationId": "<string>",
"registrationPath": "us_10dlc"
}
],
"registrations": [
{
"id": "<string>",
"kind": "us_10dlc",
"phoneNumberId": "<string>",
"status": "draft",
"stage": "details",
"form": {
"brandType": "low_volume_standard",
"legalName": "<string>",
"tradeName": "<string>",
"taxId": "<string>",
"businessType": "sole_proprietor",
"industry": "agriculture",
"stockExchange": "<string>",
"stockTicker": "<string>",
"addressStreet": "<string>",
"addressStreet2": "<string>",
"addressCity": "<string>",
"addressState": "<string>",
"addressPostalCode": "<string>",
"websiteUrl": "<string>",
"contactFirstName": "<string>",
"contactLastName": "<string>",
"contactEmail": "<string>",
"contactPhone": "<string>",
"contactTitle": "<string>",
"contactJobPosition": "director",
"useCase": "customer_care",
"description": "<string>",
"samples": [
"<string>"
],
"hasLinks": true,
"hasPhoneNumbers": true,
"dailyVolume": 50000000,
"optInType": "web_form",
"optInDescription": "<string>",
"optInProofUrls": [
"<string>"
],
"privacyPolicyUrl": "<string>",
"termsUrl": "<string>"
},
"precheck": {
"ready": true,
"checkedAt": "<string>",
"formHash": "<string>",
"checks": [
{
"id": "<string>",
"severity": "blocker",
"field": "<string>",
"passed": true,
"message": "<string>",
"fix": "<string>"
}
]
},
"precheckIsStale": true,
"steps": [
{
"key": "details",
"status": "done",
"detail": "<string>"
}
],
"rejection": [
{
"code": "<string>",
"field": "<string>",
"reason": "<string>",
"fix": "<string>"
}
],
"editAllowed": true,
"editExpiresAt": "<string>",
"submittedAt": "<string>",
"lastSyncedAt": "<string>",
"expectedReview": "<string>"
}
],
"deliveryProblems": [
{
"code": "<string>",
"count": 0,
"lastAt": "<string>",
"meaning": "<string>",
"fix": "<string>"
}
]
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}AI SMS
Get the organization’s SMS numbers, registrations and delivery problems
Read the organization’s SMS numbers, their US registrations and the texts carriers turned away.
GET
/
sms
/
overview
Get the organization’s SMS numbers, registrations and delivery problems
curl --request GET \
--url http://localhost:8080/sms/overview \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8080/sms/overview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8080/sms/overview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/sms/overview",
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 := "http://localhost:8080/sms/overview"
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("http://localhost:8080/sms/overview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/sms/overview")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"externallyManaged": true,
"channel": {
"fromNumber": "<string>",
"enabled": true
},
"numbers": [
{
"id": "<string>",
"phoneNumber": "<string>",
"countryCode": "<string>",
"numberType": "local",
"smsCapable": true,
"canReceive": true,
"sendStatus": "ready",
"registrationId": "<string>",
"registrationPath": "us_10dlc"
}
],
"registrations": [
{
"id": "<string>",
"kind": "us_10dlc",
"phoneNumberId": "<string>",
"status": "draft",
"stage": "details",
"form": {
"brandType": "low_volume_standard",
"legalName": "<string>",
"tradeName": "<string>",
"taxId": "<string>",
"businessType": "sole_proprietor",
"industry": "agriculture",
"stockExchange": "<string>",
"stockTicker": "<string>",
"addressStreet": "<string>",
"addressStreet2": "<string>",
"addressCity": "<string>",
"addressState": "<string>",
"addressPostalCode": "<string>",
"websiteUrl": "<string>",
"contactFirstName": "<string>",
"contactLastName": "<string>",
"contactEmail": "<string>",
"contactPhone": "<string>",
"contactTitle": "<string>",
"contactJobPosition": "director",
"useCase": "customer_care",
"description": "<string>",
"samples": [
"<string>"
],
"hasLinks": true,
"hasPhoneNumbers": true,
"dailyVolume": 50000000,
"optInType": "web_form",
"optInDescription": "<string>",
"optInProofUrls": [
"<string>"
],
"privacyPolicyUrl": "<string>",
"termsUrl": "<string>"
},
"precheck": {
"ready": true,
"checkedAt": "<string>",
"formHash": "<string>",
"checks": [
{
"id": "<string>",
"severity": "blocker",
"field": "<string>",
"passed": true,
"message": "<string>",
"fix": "<string>"
}
]
},
"precheckIsStale": true,
"steps": [
{
"key": "details",
"status": "done",
"detail": "<string>"
}
],
"rejection": [
{
"code": "<string>",
"field": "<string>",
"reason": "<string>",
"fix": "<string>"
}
],
"editAllowed": true,
"editExpiresAt": "<string>",
"submittedAt": "<string>",
"lastSyncedAt": "<string>",
"expectedReview": "<string>"
}
],
"deliveryProblems": [
{
"code": "<string>",
"count": 0,
"lastAt": "<string>",
"meaning": "<string>",
"fix": "<string>"
}
]
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Each number says whether it receives and sends texts and how it gets approved to send in
registrationPath: us_toll_free, us_10dlc (a local US number), staff_form (outside the US; our team registers it) or none (it cannot text). deliveryProblems groups the last 7 days of undelivered texts by error code, with what each code means and how to fix it.Authorizations
Response
Default Response
Was this page helpful?