Documentation
Everything you need to get started with SMSTunnel
Quick Start
Get up and running with SMSTunnel in 5 minutes:
Create an Account
Sign up at smstunnel.io/register to get your API key.
Download the App
Install the SMSTunnel app on your Android phone from the dashboard.
Scan QR Code
Open the app and scan the QR code from your dashboard to connect your device.
Send Your First SMS
Use the API or dashboard to send a test message.
Installation
Android App Requirements
- Android 7.0 (Nougat) or higher
- Active SIM card with SMS capability
- Stable internet connection (WiFi or mobile data)
- SMS permissions granted
Download Options
Authentication
All API requests require authentication using your API key:
curl -X POST https://smstunnel.io/api/v1/sms/send \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"phoneNumber": "+40712345678", "message": "Hello!"}' Security Note: Keep your API key secret. Never expose it in client-side code or public repositories.
App Setup
Initial Configuration
- Install the app - Download and install the SMSTunnel APK on your Android device.
- Grant permissions - Allow SMS and notification permissions when prompted.
- Scan QR code - Go to your dashboard and scan the device pairing QR code.
- Enable background service - Toggle the service to "Running" in the app.
- Disable battery optimization - Follow the in-app prompt to ensure reliable background operation.
Permissions
The app requires the following permissions:
| Permission | Purpose |
|---|---|
| SEND_SMS | Send SMS messages on your behalf |
| READ_PHONE_STATE | Read device info and SIM status |
| INTERNET | Connect to SMSTunnel servers |
| FOREGROUND_SERVICE | Run reliably in the background |
| POST_NOTIFICATIONS | Show service status notification |
Background Service
For reliable SMS delivery, the app runs a background service. Here's how to ensure it stays active:
Battery Optimization
Most Android phones aggressively kill background apps. To prevent this:
- Go to Settings > Apps > SMSTunnel
- Tap "Battery" or "Battery optimization"
- Select "Don't optimize" or "Unrestricted"
Tip: On Samsung, Xiaomi, and Huawei devices, you may need to lock the app in recent apps or add it to "Protected apps".
Sending SMS
Basic SMS
POST /api/v1/sms/send
Content-Type: application/json
X-API-Key: your_api_key
{
"phoneNumber": "+40712345678",
"message": "Your verification code is: 123456"
} Response
{
"success": true,
"messageId": "msg_abc123xyz",
"status": "queued"
} See the API Reference for all available parameters and options.
2FA Codes
SMSTunnel provides a dedicated endpoint for sending 2FA/OTP codes with optimized delivery:
POST /api/v1/sms/2fa
Content-Type: application/json
X-API-Key: your_api_key
{
"phoneNumber": "+40712345678",
"code": "123456",
"template": "Your login code is: {code}. Valid for 5 minutes."
} 2FA Benefits: Higher priority delivery, separate rate limits, and automatic code expiration tracking.
Webhooks
Receive real-time notifications about SMS delivery status via webhooks (Pro plan):
Setup
- Go to Dashboard > Settings > Webhooks
- Add your endpoint URL (must be HTTPS)
- Select events to receive (sent, delivered, failed)
- Save and copy the signing secret
Webhook Payload
{
"event": "sms.delivered",
"messageId": "msg_abc123xyz",
"phoneNumber": "+40712345678",
"status": "delivered",
"timestamp": "2025-01-02T10:30:00Z"
} WordPress Integration
Install the SMSTunnel WordPress plugin to send SMS directly from your WordPress site:
Installation
- Download the plugin from your dashboard
- Go to Plugins > Add New > Upload Plugin
- Upload the ZIP file and activate
- Go to Settings > SMSTunnel
- Scan the QR code with your phone or enter API key manually
See the Integrations page for more details and additional plugins.
WooCommerce Integration
Send automatic SMS notifications for WooCommerce orders:
Available Notifications
- New Order - Notify admin when a new order is placed
- Order Confirmation - Send confirmation to customer
- Order Status Change - Notify on processing, shipped, completed
- Low Stock Alert - Alert when products are running low
Configure message templates with placeholders like {order_id}, {customer_name}, {total}.
Contact Form 7 Integration
Receive SMS notifications when someone submits a Contact Form 7 form:
Setup
- Install both SMSTunnel and SMSTunnel CF7 plugins
- Go to Contact > Your Form > SMSTunnel tab
- Enable SMS notification
- Enter recipient phone number
- Customize message template using form tags
Template Example
Need More Help?
Can't find what you're looking for? We're here to help.