Documentation

Everything you need to get started with SMSTunnel

Quick Start

Get up and running with SMSTunnel in 5 minutes:

1

Create an Account

Sign up at smstunnel.io/register to get your API key.

2

Download the App

Install the SMSTunnel app on your Android phone from the dashboard.

3

Scan QR Code

Open the app and scan the QR code from your dashboard to connect your device.

4

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

  1. Install the app - Download and install the SMSTunnel APK on your Android device.
  2. Grant permissions - Allow SMS and notification permissions when prompted.
  3. Scan QR code - Go to your dashboard and scan the device pairing QR code.
  4. Enable background service - Toggle the service to "Running" in the app.
  5. 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:

  1. Go to Settings > Apps > SMSTunnel
  2. Tap "Battery" or "Battery optimization"
  3. 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

  1. Go to Dashboard > Settings > Webhooks
  2. Add your endpoint URL (must be HTTPS)
  3. Select events to receive (sent, delivered, failed)
  4. 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

  1. Download the plugin from your dashboard
  2. Go to Plugins > Add New > Upload Plugin
  3. Upload the ZIP file and activate
  4. Go to Settings > SMSTunnel
  5. 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

  1. Install both SMSTunnel and SMSTunnel CF7 plugins
  2. Go to Contact > Your Form > SMSTunnel tab
  3. Enable SMS notification
  4. Enter recipient phone number
  5. Customize message template using form tags

Template Example

New contact from [your-name]: [your-message]

Need More Help?

Can't find what you're looking for? We're here to help.