---
title: "Sync Google Calendars"
method: POST
path: "/api/oauth/google/sync-calendars"
tags: ["oauth", "oauth"]
---

# Sync Google Calendars

`POST /api/oauth/google/sync-calendars`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/oauth/google/sync-calendars`
- Auth: none declared

Manually sync Google Calendar calendars as threads.

This endpoint fetches all calendars from Google Calendar and persists them
as Thread entries in the database, so they appear in the Unified Inbox.

Args:
    account_id: Channel account ID

Returns:
    Number of calendars synced

## Query parameters

- `account_id` integer, required: Account ID to sync calendars for

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
