Skip to main content
GET
/
api
/
tasks
List Tasks
curl --request GET \
  --url https://api.example.com/api/tasks
{
  "id": 123,
  "title": "<string>",
  "description": "<string>",
  "status": "<string>",
  "priority": "<string>",
  "position": 123,
  "projectId": 123,
  "taskTypeId": 123,
  "userId": 123,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authentication

This endpoint requires authentication. Include a Bearer token in the Authorization header.

Response

Returns an array of task objects belonging to the authenticated user.
id
integer
Unique identifier for the task
title
string
Task title (max 200 characters)
description
string
Task description (max 5000 characters)
status
string
Current status of the task (e.g., TODO, IN_PROGRESS, DONE)
priority
string
Priority level of the task (e.g., LOW, MEDIUM, HIGH)
position
integer
Position of the task for ordering purposes
projectId
integer
ID of the associated project (if any)
taskTypeId
integer
ID of the task type (if any)
userId
integer
ID of the user who owns this task
createdAt
string
ISO 8601 timestamp when the task was created
updatedAt
string
ISO 8601 timestamp when the task was last updated

Example Request

curl -X GET https://api.dailytracker.com/api/tasks \
  -H "Authorization: Bearer YOUR_TOKEN_HERE"

Example Response

[
  {
    "id": 1,
    "title": "Complete API documentation",
    "description": "Write comprehensive API docs for all endpoints",
    "status": "IN_PROGRESS",
    "priority": "HIGH",
    "position": 1,
    "projectId": 5,
    "taskTypeId": 2,
    "userId": 123,
    "createdAt": "2026-03-08T10:30:00Z",
    "updatedAt": "2026-03-09T14:20:00Z"
  },
  {
    "id": 2,
    "title": "Review pull requests",
    "description": "Review pending PRs from the team",
    "status": "TODO",
    "priority": "MEDIUM",
    "position": 2,
    "projectId": 5,
    "taskTypeId": 1,
    "userId": 123,
    "createdAt": "2026-03-09T09:00:00Z",
    "updatedAt": "2026-03-09T09:00:00Z"
  }
]

Error Responses

401 Unauthorized
Missing or invalid authentication token
{
  "error": "Unauthorized",
  "message": "Invalid or missing authentication token"
}

Build docs developers (and LLMs) love