Dashboard
System Status
All systems operational
Recent Messages
| Time | Type | To/From | Message | Status |
|---|---|---|---|---|
| Loading logs... | ||||
Connected Numbers
Loading connections...
Pewang SMS Gateway
Turn any Android phone into a powerful SMS relay station.
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
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
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 -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!)
{ "apiKey": "sk_live_..." }
✅ Correct
{ "secret": "sk_live_..." }
The parameter is called
secret, not apiKey!
to: "0722123456"
✅ Better
to: "+254722123456"
Include the country code for international compatibility. Local format works too!
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
3. Message
0 chars
4. Send Options
Estimated cost: 0 credits
Campaign Status
Ready to start
Live Log
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.