Skip to main content

The HabitForge API

One REST API for your habits, described in full by an OpenAPI file built from the same source.

What is the base address?​

https://tmccieiihtqinjsceqil.supabase.co/functions/v1/api/v1
curl -H "Authorization: Bearer $HABITFORGE_KEY" "https://tmccieiihtqinjsceqil.supabase.co/functions/v1/api/v1/habits?limit=5"

Where is the full reference?​

FileAddress
OpenAPI 3.1, JSON/v1/openapi.json
The same, as Markdown/v1/openapi.md

Both come from the code the API runs, so neither lists a route that does not exist or misses one that does.

What are the resources?​

ResourceWhat it holdsCan
habitsYour habits: cue, routine, reward, reminder, due dayslist, get, create, update, delete
habit_schedulesEvery schedule a habit has had; a new one starts todaylist, get, create
habit_pausesWhen each habit was paused and resumedlist, get, create, update
checkinsEvery day you marked a habit donelist, get, create, delete
settingsLanguage, week start, time zone, reminders, appearancelist, get, update
notificationsYour notifications and whether you read themlist, get, update
points · achievementsWhat you earned and unlockedlist, get
household · household_membersYour household and who is in itlist, get
friends · friend_posts · friend_comments · friend_likesYour friends and their activity, as your feed shows itlist, get
challenges · challenge_membersThe challenges you joined and who takes partlist, get
habit_days · challenge_days · calendarYour due days and challenge dateslist, get

A check-in made through the API counts exactly like one made on the dashboard: the streak, the rope and the points move the same way, and the check-in window applies.

How does pagination work?​

Lists come 20 rows a page, 50 at most. A page with more after it carries meta.next_cursor; send it back as cursor for the next page. A cursor is a bookmark, so a check-in made while you read does not shift the rows.

What about limits and errors?​

They are the same on every route: see Access keys.