GET /api/tasks
Returns a paginated list of tasks. Admin users see all tasks across all users; regular users see only their own tasks.
Authentication
Include a valid access token in theAuthorization header:
Query Parameters
Page number to retrieve.
Number of tasks per page. Maximum value is
100.Field to sort results by. Allowed values:
id, title, status, priority, due_date, created_at, updated_at.Sort direction. Allowed values:
asc, desc.Filter tasks by status. Allowed values:
pending, in_progress, completed, cancelled.Filter tasks by priority. Allowed values:
low, medium, high, urgent.Filter tasks associated with a specific tag ID.
Filter tasks by tag name. Performs a case-insensitive partial match.
Search for tasks by keyword. Matches against the task
title and description fields.When
true, returns only tasks whose due_date is in the past and whose status is not completed.Return tasks with a
due_date on or after this datetime. ISO 8601 format, e.g. 2024-01-01T00:00:00.Return tasks with a
due_date on or before this datetime. ISO 8601 format, e.g. 2024-12-31T23:59:59.Response
200 OK — Returns an object with atasks array and a pagination metadata object.
Always
true for successful responses.