Skip to main content

Calendar insights summary

Agenda load aggregates (today / 7 / 14 days), breakdown by source,
reminders vs events, recurrence, and upcoming emails. Reuses the expansion
of the agenda; does not include completion states. Requires a Bearer session.

1 min read
get/calendar/profiles/{studioId}/insights-summary
Request example
Response
get/calendar/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).
ianaTimeZonestring#
IANA zone for civil agenda bounds.

Responses

application/json
OK.
dataobjectrequired#
Show child attributes
todayCountintegerrequired#
next7DaysCountintegerrequired#
next14DaysCountintegerrequired#
remindersCountintegerrequired#
eventsCountintegerrequired#
recurringCountintegerrequired#
upcomingEmailRemindersintegerrequired#
bySourceobject[]required#
Show child attributes
sourcestringrequired#
countintegerrequired#
dailyLoadobject[]required#
Show child attributes
dateKeystringrequired#
countintegerrequired#
request_idstring#