The public API currently covers entries, collections, and tags, but habits aren't exposed.
Requesting API access to habits - reading habit definitions and completions, and ideally writing (logging completions) too. Use case: connecting personal assistants/automations to habit tracking. Even read-only access would be a useful starting point.