Skip to main content
getCalendarColors retrieves the connected user’s current palette. Use its IDs for createEvent, updateEvent, and calendar-list color configuration.

Example

Inputs

Only the optional account input is available.

Output

Returns { calendars: Record<string, { background: string; foreground: string }>; events: Record<string, { background: string; foreground: string }>; updatedAt?: string }. Keys are provider color IDs. Palettes can vary by account and change over time, so do not infer IDs from hex values.