Dashboard
The Dashboard module provides company overview data and quick stats for the mobile app home screen.
Get Company Info
GET
/api/companyGet current user's company details.
Response
{
"company": {
"id": "...",
"name": "Acme Corp",
"status": "active",
"joinCode": "ABC123",
"primaryColor": "#6366f1",
"icon": "...",
"address": "...",
"members": ["userId1", "userId2"],
"noticePeriodDays": 30,
"paidLeaveDays": 12,
"wfhDays": 5,
"minWorkHours": 8
}
}
Get Users
GET
/api/usersGet all users in the company.
| Query Param | Type | Required | Description |
|---|---|---|---|
role | string | Optional | Filter by role (admin, human-resource, etc.) |
Response
{
"users": [
{
"id": "...",
"name": "John Doe",
"email": "john@example.com",
"role": "employee",
"avatarUrl": "...",
"company": "companyId"
}
]
}
Get Company Admins
GET
/api/company/adminsGet all company administrators.
{
"admins": [
{
"id": "...",
"name": "Admin User",
"email": "admin@example.com",
"role": "admin"
}
]
}
Get Company HRs
GET
/api/company/hrsGet all HR members in the company.
{
"hrs": [
{
"id": "...",
"name": "HR User",
"email": "hr@example.com",
"role": "human-resource"
}
]
}
Get Member Birthdays
GET
/api/company/members/birthdaysGet upcoming member birthdays.
{
"birthdays": [
{
"id": "...",
"name": "John",
"dob": "1990-05-15",
"avatarUrl": "..."
}
]
}