curl "https://api.hitler.app/api/moods?limit=7" \
-H "Authorization: Bearer YOUR_TOKEN"
const history = await api.getMoodHistory({ limit: 7 });
[
{
"id": "mood-uuid-1",
"value": 4,
"note": "Good team meeting today",
"createdAt": "2024-01-15T09:30:00.000Z"
},
{
"id": "mood-uuid-2",
"value": 3,
"note": null,
"createdAt": "2024-01-14T09:15:00.000Z"
},
{
"id": "mood-uuid-3",
"value": 4,
"note": "Finished the big project!",
"createdAt": "2024-01-13T09:45:00.000Z"
}
]
Moods
Mood History
Get mood entry history for the current user
GET
/
api
/
moods
curl "https://api.hitler.app/api/moods?limit=7" \
-H "Authorization: Bearer YOUR_TOKEN"
const history = await api.getMoodHistory({ limit: 7 });
[
{
"id": "mood-uuid-1",
"value": 4,
"note": "Good team meeting today",
"createdAt": "2024-01-15T09:30:00.000Z"
},
{
"id": "mood-uuid-2",
"value": 3,
"note": null,
"createdAt": "2024-01-14T09:15:00.000Z"
},
{
"id": "mood-uuid-3",
"value": 4,
"note": "Finished the big project!",
"createdAt": "2024-01-13T09:45:00.000Z"
}
]
This endpoint requires authentication.
Query Parameters
integer
default:"30"
Number of entries to return (max 100)
Response
Array of mood entries, most recent first.array
curl "https://api.hitler.app/api/moods?limit=7" \
-H "Authorization: Bearer YOUR_TOKEN"
const history = await api.getMoodHistory({ limit: 7 });
[
{
"id": "mood-uuid-1",
"value": 4,
"note": "Good team meeting today",
"createdAt": "2024-01-15T09:30:00.000Z"
},
{
"id": "mood-uuid-2",
"value": 3,
"note": null,
"createdAt": "2024-01-14T09:15:00.000Z"
},
{
"id": "mood-uuid-3",
"value": 4,
"note": "Finished the big project!",
"createdAt": "2024-01-13T09:45:00.000Z"
}
]
⌘I