Task endpoints live underDocumentation 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.
/api/tasks and are routed to the task service. All five endpoints require a valid Bearer token from a verified account. If your account has not yet been verified by an admin, you will receive 403 Forbidden on every request to this group. See the authentication guide for details on obtaining and using tokens.
Create a task
POST /api/tasks
Creates a new task owned by the authenticated user.
Headers
Bearer <token> — JWT from a verified account.Body parameters
Task title. Between 3 and 100 characters.
Optional description. Maximum 1000 characters.
Task status. One of
pending, in-progress, or completed.Task priority. One of
low, medium, or high.ISO 8601 date string (e.g.,
2025-12-31T00:00:00.000Z).Example
List tasks
GET /api/tasks
Returns a paginated, filterable list of tasks owned by the authenticated user.
Headers
Bearer <token> — JWT from a verified account.Query parameters
Filter by status. One of
pending, in-progress, or completed.Filter by priority. One of
low, medium, or high.Page number for pagination.
Number of tasks per page. Maximum 100.
Field to sort by. One of
createdAt, updatedAt, dueDate, priority, or title.Sort direction. One of
asc or desc.Example
Get a task
GET /api/tasks/:id
Returns a single task by ID. The task must belong to the authenticated user.
Headers
Bearer <token> — JWT from a verified account.Path parameters
The task’s unique identifier.
Example
Update a task
PUT /api/tasks/:id
Updates one or more fields on an existing task. All body fields are optional. The task must belong to the authenticated user and must not already be in completed status.
Headers
Bearer <token> — JWT from a verified account.Path parameters
The task’s unique identifier.
Body parameters
Updated task title. Between 3 and 100 characters.
Updated description. Maximum 1000 characters.
Updated status. One of
pending, in-progress, or completed.Updated priority. One of
low, medium, or high.Updated due date as an ISO 8601 string.
Example
Delete a task
DELETE /api/tasks/:id
Permanently deletes a task. The task must belong to the authenticated user.
Headers
Bearer <token> — JWT from a verified account.Path parameters
The task’s unique identifier.