Habit Logs
Add a log entry
Create a new log entry for a habit with a specific value and unit. Use this endpoint for measurable habits where you need to record a precise quantity.
POST
Add a log entry
Authorizations
API key generated from our app (Settings > API). Only one key can be active at a time.
Path Parameters
The unique identifier of the habit to log
Body
application/json
Symbol representing the unit of measurement for habit goals and logs. Covers distance, volume, time, weight, energy, and count-based units.
Available options:
m, kM, ft, yd, mi, floor, L, mL, fl oz, cup, sec, min, hr, ms, kg, g, mg, oz, lb, mcg, J, kJ, kCal, cal, rep, step The value to log (e.g., 5 for "5 km", 30 for "30 minutes")
Date to record the log for (YYYY-MM-DD format). Defaults to today.
Response
Log entry created successfully
Example:
"Habit log created successfully"

