Skip to main content

summary de insights de activities

Active/paused habits, blocks separately, scheduled/completed/pending
for today, weekly adherence, streaks, and 7-day daily load. Excludes blocks
and paused from the denominators. Requires a Bearer session.

1 min read
get/activities/profiles/{studioId}/insights-summary
Request example
Response
get/activities/profiles/{studioId}/insights-summary

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Identifier or key studioId.

Query parameters

todayLocalDateKeystringrequired#
Client local date (YYYY-MM-DD).

Responses

application/json
OK.
dataobjectrequired#
Show child attributes
habitsActiveintegerrequired#
habitsPausedintegerrequired#
blocksintegerrequired#
scheduledTodayintegerrequired#
completedTodayintegerrequired#
pendingTodayintegerrequired#
weeklyExpectedPeriodsintegerrequired#
weeklyCompletedPeriodsintegerrequired#
weeklyAdherencePercentnumberrequired#
maxCurrentStreakintegerrequired#
maxLongestStreakintegerrequired#
dailyLoadobject[]required#
Show child attributes
dateKeystringrequired#
scheduledintegerrequired#
completedintegerrequired#
pendingintegerrequired#
request_idstring#