v1
OpenAPI 3.1.02026-07-13632897.9 KBGet Time Allocation
Get time allocation from Google Calendar for current week.
Fetches calendar events, matches P1/P2/P3 keywords, and computes hours per keyword. Used by MCP get_priorities to enrich priority data.
Returns: 200: Time allocation data (always succeeds, zeros if no connection) 401: Missing/invalid X-User-ID 502: Google Calendar API failed after retries 503: Token refresh failed (user may need to reconnect)
Response shape: { "success": true, "data": { "week_start": "2026-02-09T00:00:00+01:00", "week_end": "2026-02-16T00:00:00+01:00", "timezone": "Europe/Berlin", "keywords": { "P1": {"hours": 10.5, "event_count": 6}, "P2": {"hours": 3.0, "event_count": 2}, "P3": {"hours": 0.0, "event_count": 0} }, "other_hours": 18.25, "total_tracked_hours": 31.75, "total_events_scanned": 42, "bar_segments": {"P1": 10.5, "P2": 3.0, "P3": 0.0, "other": 18.25} } }
Headers
Response
Successful Response