curl --request POST \
--url https://ugatext.com/api/v1/sms/send \
--header 'Client-ID: <api-key>' \
--header 'Client-Secret: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "+256750625684",
"message": "Your verification code is 482910.",
"sender_id": "UGATEXT"
}
'import requests
url = "https://ugatext.com/api/v1/sms/send"
payload = {
"to": "+256750625684",
"message": "Your verification code is 482910.",
"sender_id": "UGATEXT"
}
headers = {
"Client-ID": "<api-key>",
"Client-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Client-ID': '<api-key>',
'Client-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
to: '+256750625684',
message: 'Your verification code is 482910.',
sender_id: 'UGATEXT'
})
};
fetch('https://ugatext.com/api/v1/sms/send', 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://ugatext.com/api/v1/sms/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'to' => '+256750625684',
'message' => 'Your verification code is 482910.',
'sender_id' => 'UGATEXT'
]),
CURLOPT_HTTPHEADER => [
"Client-ID: <api-key>",
"Client-Secret: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ugatext.com/api/v1/sms/send"
payload := strings.NewReader("{\n \"to\": \"+256750625684\",\n \"message\": \"Your verification code is 482910.\",\n \"sender_id\": \"UGATEXT\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Client-ID", "<api-key>")
req.Header.Add("Client-Secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ugatext.com/api/v1/sms/send")
.header("Client-ID", "<api-key>")
.header("Client-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"to\": \"+256750625684\",\n \"message\": \"Your verification code is 482910.\",\n \"sender_id\": \"UGATEXT\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ugatext.com/api/v1/sms/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Client-ID"] = '<api-key>'
request["Client-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"to\": \"+256750625684\",\n \"message\": \"Your verification code is 482910.\",\n \"sender_id\": \"UGATEXT\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message_id": "msg_1760425200000_a1b2c3d4",
"status": "queued",
"recipient": "+256750625684",
"phone": "+256750625684",
"sender_id": "UGATEXT",
"segments": 1,
"encoding": "GSM-7",
"estimated_cost": 25,
"cost_ugx": 25,
"cost_kes": 0.4,
"cost_usd": 0.035,
"currency": "UGX",
"country": "Uganda",
"network": "Airtel",
"mode": "live",
"created_at": "2026-10-14T07:00:00.000Z",
"queued_at": "2026-10-14T07:00:00.000Z"
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}Send a Single SMS Message
curl --request POST \
--url https://ugatext.com/api/v1/sms/send \
--header 'Client-ID: <api-key>' \
--header 'Client-Secret: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "+256750625684",
"message": "Your verification code is 482910.",
"sender_id": "UGATEXT"
}
'import requests
url = "https://ugatext.com/api/v1/sms/send"
payload = {
"to": "+256750625684",
"message": "Your verification code is 482910.",
"sender_id": "UGATEXT"
}
headers = {
"Client-ID": "<api-key>",
"Client-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Client-ID': '<api-key>',
'Client-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
to: '+256750625684',
message: 'Your verification code is 482910.',
sender_id: 'UGATEXT'
})
};
fetch('https://ugatext.com/api/v1/sms/send', 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://ugatext.com/api/v1/sms/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'to' => '+256750625684',
'message' => 'Your verification code is 482910.',
'sender_id' => 'UGATEXT'
]),
CURLOPT_HTTPHEADER => [
"Client-ID: <api-key>",
"Client-Secret: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ugatext.com/api/v1/sms/send"
payload := strings.NewReader("{\n \"to\": \"+256750625684\",\n \"message\": \"Your verification code is 482910.\",\n \"sender_id\": \"UGATEXT\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Client-ID", "<api-key>")
req.Header.Add("Client-Secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ugatext.com/api/v1/sms/send")
.header("Client-ID", "<api-key>")
.header("Client-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"to\": \"+256750625684\",\n \"message\": \"Your verification code is 482910.\",\n \"sender_id\": \"UGATEXT\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ugatext.com/api/v1/sms/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Client-ID"] = '<api-key>'
request["Client-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"to\": \"+256750625684\",\n \"message\": \"Your verification code is 482910.\",\n \"sender_id\": \"UGATEXT\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message_id": "msg_1760425200000_a1b2c3d4",
"status": "queued",
"recipient": "+256750625684",
"phone": "+256750625684",
"sender_id": "UGATEXT",
"segments": 1,
"encoding": "GSM-7",
"estimated_cost": 25,
"cost_ugx": 25,
"cost_kes": 0.4,
"cost_usd": 0.035,
"currency": "UGX",
"country": "Uganda",
"network": "Airtel",
"mode": "live",
"created_at": "2026-10-14T07:00:00.000Z",
"queued_at": "2026-10-14T07:00:00.000Z"
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Authentication failed. Provide a valid 'Client-ID' and 'Client-Secret' in the request headers."
}
}Authorizations
Your UgaText Client-ID (e.g. uga_...). Accepted header aliases: X-Client-ID, or combined in Authorization: Bearer : / X-API-Key: :.
Your UgaText Client-Secret (e.g. sk_live_...). Accepted header alias: X-Client-Secret.
Headers
Optional unique key (up to 128 chars, e.g. UUID v4) to safely retry POST /api/v1/sms/send without duplicate dispatch or double billing. Cached for 24 hours per account; replays return X-Cache-Lookup: HIT (Idempotent).
"8f14e45f-ceea-467f-a8f1-4e45fceea67f"
Body
Recipient phone number in E.164 with or without a leading + (e.g. "+256750625684", "+254712345678", or "+243810000000") or local national format ("0750625684", "0810000000"). Accepted field aliases: "phone", "recipient", or first element of "recipients[]" / "phones[]". Use +256700000000, +254700000000, or +243810000000 to trigger free sandbox mode.
"+256750625684"
SMS text body (accepted field aliases: "text", "body").
"Your verification code is 482910."
Approved alphanumeric Sender ID (1-11 chars, e.g. "UGATEXT"; accepted field aliases: "senderId", "from"). Required — missing, blank, or unapproved values are rejected with 403 SENDER_ID_NOT_APPROVED.
"UGATEXT"
Response
Message accepted and queued for dispatch (poll GET /api/v1/sms/status/{id} for queued → sent → delivered)
true
Unique message identifier in format msg_<13-digit-unix-ms>_<8-hex-chars>.
"msg_1760425200000_a1b2c3d4"
Initial state is "queued". Poll GET /api/v1/sms/status/{id} to observe queued → sent → delivered.
queued, sent, delivered, failed "queued"
"+256750625684"
"+256750625684"
"UGATEXT"
1
GSM-7, UCS-2 "GSM-7"
25
25
0.4
0.035
UGX, KES, USD "UGX"
"Uganda"
"Airtel"
"sandbox" when triggered via free sandbox numbers (+256700000000 / +254700000000 / +243810000000) or a sandbox API key; "live" for billable carrier dispatches.
live, sandbox "live"
"2026-10-14T07:00:00.000Z"
"2026-10-14T07:00:00.000Z"

