Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/RafaeltiMoreira/mais-habito-api/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint returns only the tasks that belong to the authenticated user. Tasks created by other users are never included in the response.

Response

200 OK — Returns an array of task objects, each paired with an all-time completion count. Tasks are ordered by created_at ascending.
[]
object[]
required
Array of task-with-count objects.

Errors

StatusCondition
401Missing or invalid authentication token.
curl --request GET \
  --url http://localhost:3000/api/tasks/me \
  --header 'Authorization: Bearer <token>'
[
  {
    "task": {
      "id": 42,
      "user_id": "a3f1c2d4-0e5b-4a7f-b891-2c3d4e5f6a7b",
      "challenge_template_id": null,
      "title": "Meditate for 10 minutes",
      "description": "Morning meditation session",
      "points": 20,
      "is_daily_routine": true,
      "created_at": "2026-03-17T08:00:00.000Z",
      "updated_at": "2026-03-17T08:00:00.000Z"
    },
    "completion_count": 7
  },
  {
    "task": {
      "id": 43,
      "user_id": "a3f1c2d4-0e5b-4a7f-b891-2c3d4e5f6a7b",
      "challenge_template_id": null,
      "title": "Read 20 pages",
      "description": null,
      "points": 10,
      "is_daily_routine": false,
      "created_at": "2026-03-17T09:30:00.000Z",
      "updated_at": "2026-03-17T09:30:00.000Z"
    },
    "completion_count": 3
  }
]

Build docs developers (and LLMs) love