---
title: "Google Drive Exchange Token"
method: POST
path: "/storage-providers/google-drive/callback"
tags: ["storage-providers"]
---

# Google Drive Exchange Token

`POST /storage-providers/google-drive/callback`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/storage-providers/google-drive/callback`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Exchange the OAuth authorization code for tokens and connect Google Drive.

Called by the frontend after receiving the code from the popup via postMessage.
This endpoint is authenticated — the user's JWT is used to verify ownership.

## Request body

- GoogleDriveCallbackRequest: OAuth callback with authorization code.
  - `code` string, required
  - `space_id` string, uuid, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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