---
title: "Google Oauth Redirect"
method: GET
path: "/auth/oauth/google"
tags: ["auth"]
---

# Google Oauth Redirect

`GET /auth/oauth/google`

## 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/auth/oauth/google`
- Auth: none declared

Redirect user to Google OAuth consent screen.
Uses different OAuth apps based on RU_MARKET_MODE environment variable.

return_to: optional app-relative path (e.g. /listen/<token>) round-tripped
SERVER-side through the OAuth state, so flows started in in-app browsers
(Telegram/WhatsApp webviews hand OAuth to the system browser, losing
localStorage) still land back where they started — critical for listener
share links, where losing the path strands the user in onboarding instead
of joining the workspace.

## Query parameters

- `return_to` string, nullable

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