---
title: "Connect Google Drive"
method: POST
path: "/api/cloud/google-drive/connect"
tags: ["cloud-storage"]
---

# Connect Google Drive

`POST /api/cloud/google-drive/connect`

Complete Google Drive OAuth flow and save connection

This endpoint receives the authorization code from the frontend after user
authorizes the app, exchanges it for tokens, and saves the connection.

## Headers

- `x-api-key` string, nullable
- `authorization` string, nullable

## Request body

- GoogleDriveAuthRequest
  - `code` string, required
  - `redirect_uri` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/qomplement/apis/fastapi.md) · [All operations](https://skmtc.net/qomplement/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qomplement/fastapi/versions/718de1c0d866/schema)
