Skip to main content
Google Workspace APIs providing access to Google Drive, Docs, and Sheets. Best for workflows that need to manage files, read/write spreadsheets, or edit documents — storage and documents in one provider, unlike Notion (structured knowledge only). Gmail and Google Calendar are served separately by the Gmail and Google Calendar providers. 9 example endpoints available through Lava’s AI Gateway. See the Google Workspace API docs for full documentation.
This provider requires your own credentials — connect your API key or OAuth account before use.
This is a catch-all provider — any valid URL under https://www.googleapis.com is supported. Drive, Docs, and Sheets APIs. Multiple base URLs — use get_provider_docs for endpoint reference. The endpoints below are curated examples.

Endpoints

List Drive files

GET https://www.googleapis.com/drive/v3/files — Free
const data = await lava.gateway('https://www.googleapis.com/drive/v3/files', { method: 'GET' });

Get spreadsheet data

GET https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId} — Free
const data = await lava.gateway('https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}', { method: 'GET' });

Get document content

GET https://docs.googleapis.com/v1/documents/{documentId} — Free
const data = await lava.gateway('https://docs.googleapis.com/v1/documents/{documentId}', { method: 'GET' });

Create a folder or file metadata in Drive

POST https://www.googleapis.com/drive/v3/files — Free
const data = await lava.gateway('https://www.googleapis.com/drive/v3/files', {
  body: {
"name": "New Folder",
"mimeType": "application/vnd.google-apps.folder"
},
});

Update file metadata (rename, move, etc.)

PATCH https://www.googleapis.com/drive/v3/files/{fileId} — Free
const data = await lava.gateway('https://www.googleapis.com/drive/v3/files/{fileId}', { method: 'PATCH', body: {"name":"Renamed File"} });

Permanently delete a file from Drive

DELETE https://www.googleapis.com/drive/v3/files/{fileId} — Free
const data = await lava.gateway('https://www.googleapis.com/drive/v3/files/{fileId}', { method: 'DELETE' });

Apply updates to a document (insert text, format, etc.)

POST https://docs.googleapis.com/v1/documents/{documentId}:batchUpdate — Free
const data = await lava.gateway('https://docs.googleapis.com/v1/documents/{documentId}:batchUpdate', {
  body: {
"requests": [
  {
    "insertText": {
      "location": {
        "index": 1
      },
      "text": "Hello, world!"
    }
  }
]
},
});

Append rows to a spreadsheet

POST https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range}:append?valueInputOption=USER_ENTERED — Free
const data = await lava.gateway('https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range}:append?valueInputOption=USER_ENTERED', { body: {"values":[["Row 1 Col A","Row 1 Col B"]]} });

Update cell values in a spreadsheet

PUT https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range}?valueInputOption=USER_ENTERED — Free
const data = await lava.gateway('https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range}?valueInputOption=USER_ENTERED', { method: 'PUT', body: {"values":[["Updated value"]]} });

Next Steps

All Providers

Browse all supported AI providers

Forward Proxy

Learn how to construct proxy URLs and authenticate requests