REST API & Realtime Sync Engine

Next-Gen Backend for Task & Productivity

Supercharged API backend with token-based Sanctum authentication, smart recurring interval reminders, gamified achievements, productivity analytics, and admin moderation.

👥
2
Registered Users
📋
0
Active Tasks
🚀
31+
API Endpoints
PHP 8.3.33
Engine Runtime
🔑 Pre-Seeded Test Credentials
Ready for instant login via POST /api/v1/login
System Administrator Admin Role
admin@taskapp.com
password123
Demo User Standard Role
user@taskapp.com
password123
API V1 Reference Explorer
POST /api/v1/register Register new user & issue Bearer token

Request Body (JSON):

{
  "name": "Jane Doe",
  "email": "jane@example.com",
  "password": "password123"
}
POST /api/v1/login Authenticate user & return Bearer token

Request Body (JSON):

{
  "email": "admin@taskapp.com",
  "password": "password123"
}
GET /api/v1/tasks List user tasks with filters (?status=, ?priority=, ?search=)

Headers: Authorization: Bearer <TOKEN>

{
  "success": true,
  "count": 2,
  "data": [ ... ]
}
POST /api/v1/tasks Create task with smart recurring interval reminder

Request Body (JSON):

{
  "title": "Design App Architecture",
  "priority": "high",
  "status": "in_progress",
  "reminder": {
    "type": "interval",
    "interval_hours": 5,
    "max_count": 3
  },
  "subtasks": [
    { "title": "Database schema", "isCompleted": true },
    { "title": "API routes", "isCompleted": false }
  ]
}
GET /api/v1/tasks/due-reminders Poll due reminders for Tauri desktop notifications

Returns tasks where next_reminder_at <= now():

{
  "success": true,
  "count": 1,
  "data": [
    {
      "id": 1,
      "title": "Design App Architecture",
      "next_reminder_at": "2026-09-23T20:00:00.000000Z",
      "reminder": { "sent_count": 0, "max_count": 3 }
    }
  ]
}
GET /api/v1/stats/productivity Fetch streak, focus minutes, and daily completion metrics

Response (ProductivityStats Interface):

{
  "success": true,
  "data": {
    "completedToday": 3,
    "totalToday": 5,
    "streakDays": 4,
    "totalFocusMinutesToday": 95,
    "highPriorityDoneToday": 2
  }
}
GET /api/v1/achievements User levels, badges, points, and unlock progress

Response:

{
  "success": true,
  "summary": {
    "total_points": 350,
    "level": 2,
    "level_title": "Task Apprentice 🌟"
  },
  "data": [
    { "id": "first_step", "title": "First Step", "is_unlocked": true, "points": 50 },
    { "id": "streak_3", "title": "On Fire", "is_unlocked": true, "points": 150 }
  ]
}
GET /api/v1/admin/dashboard Platform-wide overview, user metrics, and top performers

Headers: Authorization: Bearer <ADMIN_TOKEN>

{
  "success": true,
  "data": {
    "users": { "total": 2, "active": 2 },
    "tasks": { "total": 12, "completed": 8 },
    "top_performers": [ ... ]
  } 
}
GET /api/v1/admin/users Manage all users, filter by role/status, search

Query Params: ?search=&role=&status=&per_page=

Copied to clipboard! ✨