Skip to main content

Goal insights summary

Active/at-risk/overdue, average progress, breakdown by status/mode, and
goals due in the next 30 days. Requires a Bearer session.

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

Responses

application/json
OK.
dataobjectrequired#
Show child attributes
activeintegerrequired#
atRiskintegerrequired#
overdueintegerrequired#
completedintegerrequired#
avgProgressPercentnumberrequired#
byStatusobject[]required#
Show child attributes
keystringrequired#
countintegerrequired#
byProgressModeobject[]required#
Show child attributes
keystringrequired#
countintegerrequired#
upcomingTargetsobject[]required#
Show child attributes
goalIdstringrequired#
titlestringrequired#
targetDateKeystringrequired#
progressPercentintegerrequired#
isAtRiskbooleanrequired#
request_idstring#