---
title: "Oauth Callback"
method: GET
path: "/email/oauth/callback"
tags: ["email"]
---

# Oauth Callback

`GET /email/oauth/callback`

Handle Google OAuth redirect — exchange code, store connection, trigger scan.

## Query parameters

- `code` string, required
- `state` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/stardrift/apis/fastapi.md) · [All operations](https://skmtc.dev/stardrift/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stardrift/fastapi/revisions/00746572572a/schema)
