Skip to main content

summary de insights de pomodoro

Daily focus for the range, week KPIs, cycles, streak, and ranking by timer.
Requires a Bearer session.

1 min read
get/pomodoro/profiles/{studioId}/insights-summary
Request example
Response
get/pomodoro/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

todayDateKeystringrequired#
Client civil date (YYYY-MM-DD).
rangeDaysinteger#
History days (default 30, max 90).

Responses

application/json
OK.
dataobjectrequired#
Show child attributes
rangeDaysintegerrequired#
workSecondsInRangeintegerrequired#
workSessionsCompletedintegerrequired#
totalSessionsInRangeintegerrequired#
weekWorkSecondsintegerrequired#
weekWorkSessionsCompletedintegerrequired#
todayWorkSecondsintegerrequired#
todayWorkSessionsCompletedintegerrequired#
focusStreakDaysintegerrequired#
activeTimersintegerrequired#
dailyFocusobject[]required#
Show child attributes
dateKeystringrequired#
workSecondsintegerrequired#
workSessionsCompletedintegerrequired#
totalSessionsintegerrequired#
topTimersobject[]required#
Show child attributes
timerIdstringrequired#
timerNamestringrequired#
workSecondsintegerrequired#
sessionsintegerrequired#
request_idstring#