curl -X POST "https://api.hitler.app/api/moods" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"value": 4,
"note": "Good team meeting today"
}'
const mood = await api.logMood({
value: 4,
note: "Good team meeting today",
});
{
"id": "mood-uuid-123",
"value": 4,
"note": "Good team meeting today",
"userId": "user-uuid",
"organizationId": "org-uuid",
"createdAt": "2024-01-15T09:30:00.000Z"
}
Moods
Log Mood
Log a mood entry for the current user
POST
/
api
/
moods
curl -X POST "https://api.hitler.app/api/moods" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"value": 4,
"note": "Good team meeting today"
}'
const mood = await api.logMood({
value: 4,
note: "Good team meeting today",
});
{
"id": "mood-uuid-123",
"value": 4,
"note": "Good team meeting today",
"userId": "user-uuid",
"organizationId": "org-uuid",
"createdAt": "2024-01-15T09:30:00.000Z"
}
This endpoint requires authentication.
Request
integer
required
Mood value from 1 (very unhappy) to 5 (very happy)
string
Optional note about the mood (max 500 characters)
Response
string
Mood entry UUID
integer
Mood value (1-5)
string
Note if provided
string
Entry timestamp
curl -X POST "https://api.hitler.app/api/moods" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"value": 4,
"note": "Good team meeting today"
}'
const mood = await api.logMood({
value: 4,
note: "Good team meeting today",
});
{
"id": "mood-uuid-123",
"value": 4,
"note": "Good team meeting today",
"userId": "user-uuid",
"organizationId": "org-uuid",
"createdAt": "2024-01-15T09:30:00.000Z"
}