Documentation Index
Fetch the complete documentation index at: https://mintlify.com/namish18/smartshelf/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Task Management API allows managers and admins to create and assign tasks to workers, while workers can view and update their assigned tasks. All endpoints require authentication.Get All Tasks
Retrieve all tasks with pagination and filtering. Access: Private (Manager/Admin only)Query Parameters
Page number for pagination
Number of tasks per page
Filter by status:
Pending, In Progress, or CompletedFilter by assigned worker ID
Search by task description
Field to sort by
Sort order:
asc or descResponse
Get My Tasks
Get tasks assigned to the currently authenticated worker. Access: Private (all authenticated users, but workers only see their own)Query Parameters
Page number for pagination
Number of tasks per page
Filter by status
Response
Get Task by ID
Get a single task by ID. Access: Private (Manager/Admin see all, Workers see only their own)Response
Create Task
Create a new task and assign it to a worker. Access: Private (Manager/Admin only)Request Body
Task description
ID of the worker to assign the task to
Example Request
Example Response
Tasks can only be assigned to users with the “Worker” role. The assigned user must be active.
Update Task
Update a task’s description, assignedTo, or status. Access: Private (Manager/Admin only)Request Body
All fields are optional. Only provided fields will be updated.Updated task description
Updated worker ID
Updated status:
Pending, In Progress, or CompletedExample Request
Update Task Status
Quickly update only the task status. Access: Private (Workers can update their own tasks, Manager/Admin can update all)Request Body
New status:
Pending, In Progress, or CompletedExample Request
Example Response
Delete Task
Delete a task. Access: Private (Manager/Admin only)Response
Task Analytics
Get Task Completion Rate
Get task completion analytics including overall statistics and breakdown by worker. Access: Private (Manager/Admin only)Response
Role-Based Access
| Endpoint | Worker | Manager | Admin |
|---|---|---|---|
| GET /tasks | ❌ | ✅ | ✅ |
| GET /tasks/my-tasks | ✅ | ✅ | ✅ |
| POST /tasks | ❌ | ✅ | ✅ |
| PUT /tasks/:id | ❌ | ✅ | ✅ |
| PATCH /tasks/:id/status | ✅ (own) | ✅ | ✅ |
| DELETE /tasks/:id | ❌ | ✅ | ✅ |
| GET /tasks/analytics/* | ❌ | ✅ | ✅ |