📱 SMS Webhook System
Receive and manage SMS messages from your Android device via webhook
Quick Setup
- Step 1: Install the SMSWebhook app on your Android device
- Step 2: Open the app and enter this webhook URL:
http://localhost/sms-dashboard/webhook.php
- Step 3: Enter your API key (see below)
- Step 4: Click "Connect & Start Service"
- Step 5: View received SMS messages in the admin panel
API Keys
Use one of these API keys in your app configuration:
your_api_key_here (Default)
admin_key_12345 (Admin Key)
💡 Tip: Edit config.php to add custom API keys
Webhook Data Format
The app sends SMS data in JSON format:
{
"from": "+8801234567890",
"message": "Hello! This is a test message",
"timestamp": "2024-01-15 14:30:45",
"date": "2024-01-15",
"time": "14:30:45",
"api_key": "your_api_key_here",
"test": false
}
Database Setup
Run the following SQL to create the database and table:
CREATE DATABASE IF NOT EXISTS sms_webhook_db;
USE sms_webhook_db;
CREATE TABLE sms_messages (
id INT PRIMARY KEY AUTO_INCREMENT,
from_number VARCHAR(20) NOT NULL,
message LONGTEXT NOT NULL,
date DATE,
time TIME,
timestamp DATETIME,
received_at DATETIME DEFAULT CURRENT_TIMESTAMP,
is_test TINYINT DEFAULT 0,
INDEX (from_number),
INDEX (date),
INDEX (received_at)
);
Configuration
Edit config.php to customize:
DB_HOST - Database server address
DB_USER - Database username
DB_PASSWORD - Database password
DB_NAME - Database name
API_KEYS - Array of valid API keys
SITE_NAME - Website title
SITE_URL - Your webhook URL
Admin Panel
Access the admin dashboard to:
- View all received SMS messages
- Search by sender number, message content, or date
- Delete messages
- View statistics
⚠️ Security: Change the default admin password in admin.php