---
title: "Google Oauth Exchange"
method: POST
path: "/api/auth/oauth/google/exchange"
tags: ["oauth"]
---

# Google Oauth Exchange

`POST /api/auth/oauth/google/exchange`

Exchange a Google authorization code for JWT tokens (JSON API).

Legacy endpoint for clients that handle the OAuth redirect themselves.

## Request body

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

## Response `200`

Successful Response

- AuthResponse
  - `access_token` string, required
  - `refresh_token` string, required
  - `token_type` string
  - `user_id` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-14** `e202091512bc` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mozilla-ai/apis/clawbolt/changes/api/auth/oauth/google/exchange/post.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/clawbolt.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/clawbolt/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mozilla-ai/clawbolt/revisions/579c110de1b8/schema)
