Tasks are the core unit of work in TaskFlow. Each task belongs to a single user, carries a status and priority, and can optionally have a due date. This page explains the task data model, the full lifecycle from creation to completion, and how to query and paginate your task list.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Ajith66310/task-manager-full/llms.txt
Use this file to discover all available pages before exploring further.
Task data model
Every task stored in TaskFlow has the following fields:| Field | Type | Constraints | Default |
|---|---|---|---|
title | string | Required. 3–100 characters. | — |
description | string | Optional. Max 1,000 characters. | "" |
status | string | One of pending, in-progress, completed. | pending |
priority | string | One of low, medium, high. | medium |
dueDate | date | Optional. ISO 8601 format (e.g. 2025-12-31). | null |
isVerifiedByAdmin | boolean | true by default. Set to false when a task is submitted for admin review. | true |
isOverdue | boolean | Virtual field — read-only, not stored. | computed |
Status values
| Value | Meaning |
|---|---|
pending | Task has been created but work has not begun |
in-progress | Work is actively underway |
completed | Task is finished and can no longer be edited |
Priority values
| Value | Meaning |
|---|---|
low | Non-urgent, can be addressed later |
medium | Standard priority (default) |
high | Urgent, should be addressed promptly |
The isOverdue virtual field
isOverdue is computed at read time and is never persisted to the database. It returns true when all of the following are true:
- The task has a
dueDateset. - The current time is past that date.
- The task status is not
completed.
Because
isOverdue is a virtual field, you cannot filter tasks by it via query parameters. Use the dueDate and status filters together to achieve the same result.Creating a task
Send aPOST request to /api/tasks with the task details in the request body.
title is the only required field. All other fields are optional and fall back to their defaults.
You must be a verified user to create tasks. Unverified accounts receive a
403 Forbidden response. Contact your admin to get your account verified.Updating a task
Send aPUT request to /api/tasks/:id to modify an existing task. All body fields are optional — include only the fields you want to change.
isVerifiedByAdmin flag is automatically set to true on the updated record.
Retrieving tasks
List all tasks
Filter and paginate
Append any combination of the following query parameters:| Parameter | Type | Allowed values | Default |
|---|---|---|---|
status | string | pending, in-progress, completed | — |
priority | string | low, medium, high | — |
page | integer | Any positive integer | 1 |
limit | integer | 1–100 | 10 |
sortBy | string | createdAt, updatedAt, dueDate, priority, title | createdAt |
order | string | asc, desc | desc |
meta object with pagination details:
Fetch a single task
Deleting a task
Task verification
All tasks are created withisVerifiedByAdmin: true by default. A task only appears in the admin’s pending queue (GET /api/admin/tasks/pending) when isVerifiedByAdmin is explicitly set to false. Admin-assigned tasks are always created with isVerifiedByAdmin: true and bypass the pending queue entirely.