# connectors.googleDrive.connect

Start connecting the company's Google Drive with read-only access: returns url, the Google consent page for the admin to open while signed in to Oatmilk (only the admin who asked can finish it, within ten minutes). Optional returnTo is an Oatmilk path to come back to. Once connected, import files and folders with dataSources.import (source google_drive; target company_documents to file incorporation papers and fill the company profile). Disconnect with connectors.credentials.remove (id google_drive).

`POST /api/v1/accounting/connectors.googleDrive.connect`

Permissions: `accounting:read`, `accounting:write`, `accounting:admin` · Roles: admin

MCP tool: `accounting_connectors_google_drive_connect`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `returnTo` | string |  | at most 300 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/connectors.googleDrive.connect \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Reference page: https://app.getoatmilk.com/docs/api/connectors.googleDrive.connect
