Skip to main content
GET
Get a habit

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

Response

The habit details

Represents a habit you want to track. Contains all configuration including scheduling, goals, reminders, and categorization.

id
string
required

Unique identifier of the habit

name
string
required

Display name of the habit

icon
string | null
required

Icon identifier used for visual display

colorHex
string
required

Hex color code for the habit (e.g., "#FF6B6B")

type
enum<string>
required

Indicates whether a habit is something you want to build or break. A "good" habit is one you want to maintain or increase (e.g., exercise, reading). A "bad" habit is one you want to reduce or eliminate (e.g., smoking, excessive screen time).

Available options:
good,
bad
description
string | null
required

Optional detailed description of the habit

occurrence
object
required

Defines the recurrence schedule for a habit. A habit can occur daily, on specific days of the week, on specific days of the month, or at a fixed interval of days.

startDate
string<date>
required

Date when the habit tracking begins (YYYY-MM-DD format)

createdAt
string<date-time>
required

Timestamp when the habit was created

isArchived
boolean
required

Whether the habit is archived. Archived habits are hidden but their data is preserved.

logMethod
enum<string>
required

Determines how habit progress is tracked. - manual: You manually log progress through our app or API. - auto: Progress is automatically tracked via an integrated service (e.g., Apple Health, Fitbit, Strava).

Available options:
manual,
auto
goals
object[]
required

List of goals associated with this habit

challengeId
string

Identifier of the challenge this habit belongs to, if any

reminders
object

Reminder configuration for a habit, including time-based triggers and habit stacking rules.

endCondition
object

An end condition that causes the habit to end on a specific date.

customUnitName
string | null

Custom unit name for measurable habits (e.g., "glasses" for water intake)

areas
object[]

Areas this habit is categorized under

timeOfDays
object[]

Time-of-day periods when the habit should be performed