Dashboard

Total SMS Sent
0
This Month
WhatsApp Messages
0
This Month
Total Messages
0
All Time

System Status

All systems operational

Recent Messages

Time Type To/From Message Status
Loading logs...

Connected Numbers

Loading connections...

Pewang Gateway

Pewang SMS Gateway

Turn any Android phone into a powerful SMS relay station.

1

Step 1: Get the App

Download and install the official Pewang Gateway APK on your Android device.

Download Android APK

Version 1.0.2 (Latest) • 5.5 MB

2

Step 2: Configure App

REQUIRED

Copy these settings into the Android app and tap Save.

https://gateway.pewang.company
Loading...
Device auto-registers when you save!
3

Step 3: You're Done!

Once paired, your device will appear in the table below. You can:

  • Test the connection with a tap
  • Monitor status and last activity
  • Unpair devices you no longer use

Tip: You can connect multiple phones to the same account!

Advanced: One-Time Pairing Tokens (Optional)

Generate single-use tokens for enhanced security. Use this if you don't want to share your main API key with the device.

Connected Gateway Devices

Device Name Device ID Last Seen Status Actions
No devices connected. Follow the steps above to pair a phone.

Your Secret Keys

Use these keys to authenticate your API requests. Keep them secret!

AI Bot Flow Builder

Automate your customer engagement with a structured bot flow. Paste AI-generated JSON or build visually.


Select a WhatsApp client to start building.

Website Widget

Current Balance

0 credits

Current Plan: Free

Add Credits

Securely top up your account via M-Pesa to continue sending messages.

Lipa Na M-Pesa

  • Till Number: 6966784 (Buy Goods)
  • Name: PEWANG DGTAL CO

Automatic verification coming soon!

Message Reports

Total Messages
0
Sent
0
Failed
0
Success Rate
0%

Message Log

0 messages
Date/Time Type To Message Status
Click "Apply Filters" to load messages

🚀 Send Your First Message in 30 Seconds

Test SMS or WhatsApp directly from your browser. No code needed!

Try It Now View Code

Try It Now

Test the API directly from your browser. No code required!

Auto-loaded from your account

Success Response

{
  "success": true,
  "message": "Message queued",
  "id": "e1fdd775-d1d1-4af6-8a71-f27d9998074f"
}

Error Response

{
  "error": "Missing parameters: to, msg"
}

Quick Tips

  • 📱 SMS: Requires Android Gateway connected
  • 💬 WhatsApp: Requires WhatsApp QR scan
  • 🌍 Phone format: 0722... or +254722...

📚 Code Examples

cURL Node.js Python PHP C#
curl -X POST "https://gateway.pewang.company/api/sendSMS" \
  -H "Content-Type: application/json" \
  -d '{
    "secret": "YOUR_API_KEY",
    "to": "+254722123456",
    "msg": "Hello from Pewang! 🎉"
  }'

Common Mistakes (Save Hours of Debugging!)

❌ Wrong { "apiKey": "sk_live_..." } ✅ Correct { "secret": "sk_live_..." }

The parameter is called secret, not apiKey!

❌ Wrong to: "0722123456" ✅ Better to: "+254722123456"

Include the country code for international compatibility. Local format works too!

❌ Missing Header

If you get Cannot parse JSON, make sure you're sending:

Content-Type: application/json

📖 API Reference

Endpoint Method Description
/api/sendSMS POST Send an SMS via your Android Gateway
/api/sendWhatsApp POST Send a WhatsApp message via connected instance

Request Parameters

Parameter Type Required Description
secret string Yes Your API key (starts with sk_live_)
to string Yes Recipient phone number
msg string Yes Message content (supports emojis! 🎉)
client string WhatsApp only Your WhatsApp client ID

Broadcast Campaign

1. Configuration

Select which WhatsApp number to send from.


2. Recipients

Supported formats: 07xx, 2547xx, +2547xx

0 numbers

3. Message

0 chars


4. Send Options

Estimated cost: 0 credits

Campaign Status

Ready to start


Live Log

Waiting for campaign...

Scheduled Campaigns

No scheduled campaigns

SIM Verification

Total Requests

0

Success Rate

0%

Successes

0

Verification Logs

Time Phone Status Details
Loading...

Account Settings

Manage your profile and notification preferences.

We will send low balance warnings to this number using your connected gateway.

Global Webhook

This is the **Fallback URL**. It receives all events (SMS & WhatsApp) that are not handled by a specific device or client webhook.