---
title: "Google OAuth callback"
method: GET
path: "/v1/calendars/google/callback"
tags: ["Calendars"]
---

# Google OAuth callback

`GET /v1/calendars/google/callback`

## Request

- Base URL: `https://api.astrocal.dev`
- URL: `https://api.astrocal.dev/v1/calendars/google/callback`
- Auth: HTTP bearer

Handles the OAuth callback from Google. Exchanges the authorization code for tokens, stores the encrypted connection, and redirects.

## Query parameters

- `code` string
- `state` string
- `error` string

## Other responses

- `302`: Redirect to success or error page, including when rate limited
- `400`: Invalid state token

---

[API](https://skmtc.dev/astrocal/apis/astrocal-api.md) · [All operations](https://skmtc.dev/astrocal/apis/astrocal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/astrocal/apis/astrocal-api/revisions/3b953e19a348?raw)
