Connectors and webhooks

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:readaccounting:writeaccounting:admin

Who can call it

admin

Retries

No idempotency key

MCP

accounting_connectors_google_drive_connect

Fields

  • returnTostring

    at most 300 characters

Example

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

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

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

More in Connectors and webhooks.