Skip to main content

Get Daily Tasks

GET /day/dailyTasks

GET /day/:username/dailyTasks

Description

Returns paginated daily task templates.

  • /day/dailyTasks returns the authenticated user's own daily tasks.
  • /day/:username/dailyTasks returns daily tasks for a public, verified user.

Request Parameters

Requires Authentication: true

PATH PARAMS

Only used by /day/:username/dailyTasks.

NameTypeRequiredDescription
usernamestringYesTarget username.

QUERY PARAMS

NameTypeRequiredDescription
pagenumberNoPage number. Defaults to 1.
maxPageSizenumberNoPage size. The API caps it at the shared max page size.

Usage Example

await axios.get("https://api.daykeeper.app/day/dailyTasks?page=1", {
headers: {
Authorization: `Bearer ${accessToken}`,
},
})

Success Response

{
"code": 200,
"message": "Daily Tasks fetched successfully",
"data": [
{
"_id": "67d9c359cc9e4db02fca1045",
"title": "Drink water",
"daily": true
}
],
"page": 1,
"pages": 1
}

Error Response

CodeDescription
401Missing or invalid access token
404User not found when requesting another user's list
500Server error