---
title: "Gmail Oauth Callback"
method: GET
path: "/api/auth/gmail/callback"
tags: ["Account and billing"]
---

# Gmail Oauth Callback

`GET /api/auth/gmail/callback`

## Request

- Base URL: `https://epw.tools`
- URL: `https://epw.tools/api/auth/gmail/callback`
- Auth: none declared

Handle Google OAuth callback and save refresh token.

## Query parameters

- `code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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