Events and Streaks
An event describes a generic "something" that has happened, where that "something" depends on your app's use case. For example, it might be a user completing a daily fitness challenge, or completing a daily habit, or even just visiting a particular screen in your app. Whatever you want to track streaks for.
With this API you store events as they happen, and then you can request streak calculations for those events using different options.