---
title: "Google Callback"
method: GET
path: "/api/auth/google/callback"
tags: ["auth"]
---

# Google Callback

`GET /api/auth/google/callback`

## Request

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

Google sends the BROWSER here, so this answers with a redirect.

Ported from v1 packages/api/src/routes/auth.ts:78-219. v2 returned JSON,
which meant the person completing a Google sign-in landed on a raw JSON
blob and was never logged in -- the flow existed but could not carry
anyone into the app.

## Query parameters

- `code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
