> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get calendar colors

> Get Google Calendar color IDs and their foreground and background values.

`getCalendarColors` retrieves the connected user's current palette. Use its IDs
for `createEvent`, `updateEvent`, and calendar-list color configuration.

## Example

```ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { getCalendarColors } from "automate.ax/google-calendar"

export default automation("Load Calendar colors", () => {
  onHttpRequest({ scope: "automation" })

  getCalendarColors({})
})
```

## 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.
