Skip to content

SDKs & Libraries

Use our official SDKs to integrate Galatext APIs into your application quickly and easily.

Available SDKs

Node.js / JavaScript

The official Galatext Node.js SDK provides a simple, promise-based interface for all API endpoints.

Installation:

bash
npm install galatext-api
# or
yarn add galatext-api

Usage:

javascript
const Galatext = require('galatext-api');

const client = new Galatext({
  apiKey: process.env.GALATEXT_API_KEY
});

// Send an SMS
async function sendSMS() {
  try {
    const response = await client.sms.send({
      phoneNumber: '+254712345678',
      message: 'Hello from Galatext SDK!',
      senderId: 'YOURBRAND'
    });
    console.log('Message sent:', response.messageId);
  } catch (error) {
    console.error('Error:', error.message);
  }
}

sendSMS();

// Send a WhatsApp message
async function sendWhatsApp() {
  const response = await client.whatsapp.send({
    phoneNumber: '+254712345678',
    type: 'text',
    text: { body: 'Hello from WhatsApp API!' }
  });
}

// Check account balance
async function checkBalance() {
  const balance = await client.account.getBalance();
  console.log('Credits:', balance.creditsRemaining);
}

Links:

Python

The Python SDK makes it easy to integrate Galatext into your Django, Flask, or FastAPI applications.

Installation:

bash
pip install galatext-python

Usage:

python
from galatext import GalatextClient

client = GalatextClient(api_key="YOUR_API_KEY")

# Send an SMS
response = client.sms.send(
    phone_number="+254712345678",
    message="Hello from Galatext Python SDK!",
    sender_id="YOURBRAND"
)
print(f"Message sent: {response.message_id}")

# Send WhatsApp message
response = client.whatsapp.send(
    phone_number="+254712345678",
    message_type="text",
    text={"body": "Hello from WhatsApp!"}
)

# Check balance
balance = client.account.balance()
print(f"Credits remaining: {balance.credits_remaining}")

# Bulk SMS
response = client.sms.bulk(
    recipients=[
        {"phoneNumber": "+254712345678"},
        {"phoneNumber": "+254723456789"}
    ],
    message="Welcome to our platform!",
    sender_id="YOURBRAND"
)

Links:

Coming Soon

LanguageStatusExpected
PHP🚧 In DevelopmentQ3 2025
Go🚧 In DevelopmentQ3 2025
Java📋 PlannedQ4 2025
Ruby📋 PlannedQ4 2025
C# / .NET📋 PlannedQ1 2026

Community SDKs

Community-maintained SDKs are not officially supported by Galatext. Use at your own risk.

LanguageMaintainerLink
Dart/FlutterCommunityGitHub
Laravel (PHP)CommunityGitHub

Direct API Access

If you prefer to use the API directly without an SDK, you can make HTTP requests to our REST API:

bash
curl -X POST https://api.galatext.com/api/sms/send \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "phoneNumber": "+254712345678",
    "message": "Hello from direct API call!",
    "senderId": "GALATEX"
  }'

Base Configuration

All SDKs share common configuration options:

OptionTypeDefaultDescription
apiKeystringRequiredYour Galatext API key
baseURLstringhttps://api.galatext.comAPI base URL (use sandbox for testing)
timeoutnumber30000Request timeout in milliseconds
maxRetriesnumber3Number of retry attempts on failure

Contributing

We welcome contributions! See our contribution guidelines on GitHub:

Getting Help

Powered by Galatex Softwares