List tasks
List your habits, dailies, to-dos or rewards.
GET https://cotlet.dev/api/v1/habitica/tasks
read
Returns each task with its ID, type, title, notes, difficulty, tags and, for dailies, whether it is due today and its streak. Checklist items are included. Tasks come in the order Habitica shows them.
Parameters
| Name | Type | Description |
|---|---|---|
| type string | string | One of: habit, daily, todo or reward. Omit for habits, dailies and to-dos. |
| tag string | string | Only tasks with this tag name. |
Request
curl https://cotlet.dev/api/v1/habitica/tasks \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("habitica", "list_tasks") const result = await cotlet.call('habitica', 'list_tasks'); cotlet call habitica list_tasks Example response
{
"tasks": [
{
"task_id": "b7c1f6a0-3d52-4e1a-9a7e-5d1c0f2e8a11",
"type": "daily",
"title": "Stretch 10 minutes",
"difficulty": "easy",
"due_today": true,
"completed": false,
"streak": 12,
"tags": [
"morning"
]
}
]
}