not checked
🔑 no token yet
🛡️ MYSelamat API Tester
Test all API endpoints directly in the browser. Set your base URL above and click Test Connection first.
API Status
Token
Environment
PHP Version
Quick Actions
📝
Register
Create new user
Saya Selamat
Tap check-in
⏱️
Check Status
Countdown timer
🤖
AI Wellness
Chat with Claude
📊
Admin Panel
KPI overview
💳
Pricing Plans
View all plans
💡 Flow: Register → Verify OTP → copy token → paste it in the token bar above → test any endpoint.
POST Register
POST /api/v2/auth/register — Creates account and sends OTP via SMS.
POST Verify OTP
POST /api/v2/auth/verify-otp — Verifies SMS OTP and returns your Bearer token.
⚠️ After success, your token is saved automatically. You can also paste it manually in the config bar above.
POST Login
POST /api/v2/auth/login — Sends OTP to existing verified user.
GET Get Current User
GET /api/v2/auth/me — Returns your profile, plan, and schedule.
Requires Bearer token. Make sure you verified OTP first.
POST Saya Selamat ✅
POST /api/v2/checkin — The main SAYA SELAMAT tap. Resets your countdown timer.
GET Check-In Status
GET /api/v2/checkin/status — Countdown timer, UI state, and streak.
GET Check-In History
GET /api/v2/checkin/history — Calendar heatmap data.
GET List Contacts
GET /api/v2/contacts — Your trusted contacts sorted by priority.
POST Add Contact
POST /api/v2/contacts — Add a trusted contact. Free plan = max 3, Family/Pro = 5.
POST AI Wellness Chat 🤖
POST /api/v2/wellness/assess — Chat with MYBot (Claude AI). Requires Family/Pro plan or Anthropic API key set.
GET Wellness Insights
GET /api/v2/wellness/insights — 30-day risk trend and top symptoms.
GET Subscription Plans
GET /api/v2/subscription/plans — Public. No token needed.
GET My Current Plan
GET /api/v2/subscription/current — Your active subscription.
GET Admin Overview
GET /api/v2/admin/overview — KPI dashboard. Requires admin role.
⚠️ Requires admin role. Make sure you're logged in as the admin user.
GET Missed Check-Ins Feed
GET /api/v2/admin/missed — Live feed of active missed check-ins. Admin only.
GET Admin Users
GET /api/v2/admin/users — Search and list all users. Admin only.