curl --request GET \
--url https://api.example.com/calendar/calendars{
"calendars": [
{
"id": "<string>",
"google_calendar_id": "<string>",
"name": "<string>",
"color": "<string>",
"is_primary": true,
"google_account_id": "<string>",
"account_email": "<string>",
"account_name": "<string>",
"needs_reauth": true,
"access_role": "<string>"
}
]
}Retrieve all Google calendars for the authenticated user
curl --request GET \
--url https://api.example.com/calendar/calendars{
"calendars": [
{
"id": "<string>",
"google_calendar_id": "<string>",
"name": "<string>",
"color": "<string>",
"is_primary": true,
"google_account_id": "<string>",
"account_email": "<string>",
"account_name": "<string>",
"needs_reauth": true,
"access_role": "<string>"
}
]
}GET /calendar/calendars
Show calendar object
curl -X GET "https://api.chronoscalendar.com/calendar/calendars" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"calendars": [
{
"id": "cal_abc123",
"google_calendar_id": "[email protected]",
"name": "Personal",
"color": "#9fe1e7",
"is_primary": true,
"google_account_id": "acc_xyz789",
"account_email": "[email protected]",
"account_name": "John Doe",
"needs_reauth": false,
"access_role": "owner"
},
{
"id": "cal_def456",
"google_calendar_id": "[email protected]",
"name": "Work Calendar",
"color": "#f09300",
"is_primary": false,
"google_account_id": "acc_xyz789",
"account_email": "[email protected]",
"account_name": "John Doe",
"needs_reauth": false,
"access_role": "writer"
}
]
}
backend/app/routers/calendar.py:111-114 and backend/app/calendar/db.py:190-198