Skip to main content
POST
Mark habit as completed

Authorizations

X-API-Key
string
header
required

API key generated from our app (Settings > API). Only one key can be active at a time.

Path Parameters

habitId
string
required

The unique identifier of the habit to complete

Body

application/json
targetDate
string<date>

Date to mark as completed (YYYY-MM-DD format). Defaults to today.

Response

Habit marked as completed successfully

message
string
Example:

"Habit marked as completed successfully"