Developer Documentation Portal
Interactive API payloads, database table properties, and quick environment setup checklists for developers integrating with the Almodesk Mobile Tracking server ecosystem.
Server Setup Process
Ensure your development node is configured before spinning up the container or starting operations.
1. Install Composer Vendors
Step 1Run this inside the codebase root directory to install packages:
composer install
2. Create .env Environment Details
Step 2Duplicate the sample file and generate the unique application encryption key:
cp .env.example .env php artisan key:generate
3. Setup Schema & Admin Seeders
Step 3Configure your MySQL connection details inside .env and build the schema:
php artisan migrate --seed
Default Admin credentials generated by seeder:
Username:
Username:
superadmin • Password: password
4. Spin up Local Port Listening
Step 4Serve the app on port 8001 to begin handling client calls:
php artisan serve --port=8001
Database Schema Structure
Detailed field listings for the primary entities configured in the MySQL migrations directory.
users
User master slots| Field | Type | Details / Roles |
|---|---|---|
| id | bigint | Primary Auto key |
| name | varchar | Full display name |
| varchar | Unique account email | |
| user_name | varchar | Unique login handle |
| role | varchar | superadmin / admin / user |
| user_points | int | Points remaining to add slots |
| expiry_day | datetime | Dynamic system expiry cutoff |
ad_attendance_t
Shift punch logs| Field | Type | Details / Roles |
|---|---|---|
| id | bigint | Primary Auto key |
| user_id | bigint | Refers to users.id |
| s_timestamp | datetime | Clock-In time |
| s_latitude / s_longitude | double | Clock-In GPS coordinates |
| s_battery | int | In battery percentage |
| e_timestamp | datetime | Clock-Out time |
Authentication Module
POST
Guest / Admin Login
/api/v1/auth/login
Request Payload:
{
"email": "superadmin",
"password": "password",
"fcm_token": "mock-token",
"geo_location": {
"latitude": 13.0086,
"longitude": 80.2112,
"geo_address": "Chennai, TN"
}
}
Response JSON (200 OK):
{
"message": "SUCCESS",
"token": "7|pC9i4kU...",
"auth_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@gmail.com",
"role": "superadmin"
}
}
User & Slot Module
POST
Header: /api/v1/user/family-register
token required
Request Payload:
{
"first_name": "Sathish",
"last_name": "Kumar",
"email": "sathish@domain.com",
"mobile_number": "9998887770",
"user_name": "sathish_fam",
"password": "sub_user_password",
"user_expiry": "2026-12-31"
}
Attendance Module
POST
Header: /api/v1/attendance/start-attendance
token required
Request Payload:
{
"s_latitude": "13.0086",
"s_longitude": "80.2112",
"s_geo_address": "Guindy Metro Station",
"s_battery": 92
}
Location Tracker Module
POST
GPS Tracker Stream (Header: /api/v1/location/update-location
token required)
Request Payload:
{
"latitude": 13.0086,
"longitude": 80.2112,
"geo_address": "SIDCO Industrial Estate, Guindy",
"battery": 82
}
Dashboard Modules
GET
Header: /api/v1/dashboard/user-dashboard-report
token required
Response JSON (201 SUCCESS):
{
"message": "SUCCESS",
"user_dashboard_report": {
"total_user": 3,
"active_user": 3,
"present_user": 1,
"user_points": 45,
"expiry_day": 148
}
}
Support Module
GET
Header: /api/v1/support/app-contact-support
token required
Response JSON:
{
"message": "SUCCESS",
"app_support_details": {
"id": 99,
"mobile_number": "+1 (800) 555-0199",
"email": "support@almodesk-tracker.com",
"address": "100 Innovation Way, Chennai, TN"
}
}