🛡️

RAKSHAK 2

Mobile Security & Anti-Theft Backend

API & MySQL Connected
🛡️
Safety & Compliance Verified: This application adheres to official Android APIs with transparent user notifications. Zero fake power-off, fake shutdown, or stealth surveillance mechanisms.
Registered Users
4
Authorized Devices
9
GPS Coordinate Logs
315
Active Siren Alarms
6

📱 Android App Connection URLs

FOR ANDROID EMULATOR:
http://10.0.2.2/rakshak2/api/
FOR LOCAL BROWSER / SAME PC:
http://rakshak.pkstudy.co.in/rakshak2/api/

🔌 Active REST API Endpoints

Method Endpoint Description Auth Action
GET api/health.php Server and MySQL health check diagnostics Public Test API
POST api/register.php Register new account (Name, Mobile, Password) Public POST Body
POST api/login.php Sign in with Mobile + Password (No OTP) Public POST Body
POST api/logout.php Invalidate session token and mark device offline Bearer POST Body
GET api/profile.php Get user profile & device statistics Bearer Protected
POST api/save_location.php Ingest GPS coordinates, accuracy, battery % Bearer Protected
GET api/location_history.php Paginated GPS tracking trail Bearer Protected
GET api/devices.php List authorized user devices & battery status Bearer Protected
POST api/add_device.php Generate 6-digit pairing code / link secondary phone Bearer / Public POST Body
GET api/device_locations.php Latest coordinates of all devices for Map display Bearer Protected
POST api/alarm.php Trigger emergency siren or poll active alarms Bearer POST Body