Family Calendar API

API endpoint: /api/calendar

Usage

GET /api/calendar
GET /api/calendar?from=2024-01-01&to=2024-01-31

Response

{
  "calendars": [
    { "name": "Work", "color": "#3B82F6" },
    ...
  ],
  "events": [
    {
      "id": "...",
      "title": "Meeting",
      "start": "2024-01-15T09:00:00Z",
      "end": "2024-01-15T10:00:00Z",
      "allDay": false,
      "calendar": "Work",
      "color": "#3B82F6"
    },
    ...
  ],
  "fetchedAt": "2024-01-15T08:00:00Z"
}