📱 SMS Webhook System

Receive and manage SMS messages from your Android device via webhook

Quick Setup

  1. Step 1: Install the SMSWebhook app on your Android device
  2. Step 2: Open the app and enter this webhook URL:
    http://localhost/sms-dashboard/webhook.php
  3. Step 3: Enter your API key (see below)
  4. Step 4: Click "Connect & Start Service"
  5. 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