# Google Drive Integration via LowCodeAPI

**Last Updated**: February 10, 2026

## Overview
File storage

**Categories:**
- {'id': 'file-sharing-collaboration', 'name': 'File Sharing & Collaboration'}

## Base Endpoint
https://api.lowcodeapi.com/googledrive

**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`

## Authentication
**Type:** OAUTH2.0

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3

## URL Format (Important)

LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.

### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`

### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`

### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider

## API Categories

## Common Endpoints

### Gets information about the user the user's Drive and system capabilities.

**Method:** GET
**LowCodeAPI Path:** /drive/v3/about

**New Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/about?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/about?api_token=YOUR_API_TOKEN

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googledrive/drive/v3/about?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3/about/get

### Gets a specific app.

**Method:** GET
**LowCodeAPI Path:** /drive/v3/apps/{app_id}

**New Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/apps/{app_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/apps/app_id?app_id={app_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| app_id | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googledrive/drive/v3/apps/{app_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3/apps/get

### Lists a user's installed apps.

**Method:** GET
**LowCodeAPI Path:** /drive/v3/apps

**New Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/apps?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/apps?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| appFilterExtensions | string |  |
| appFilterMimeTypes | string |  |
| languageCode | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googledrive/drive/v3/apps?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3/apps/list

### Gets the starting pageToken for listing future changes.

**Method:** GET
**LowCodeAPI Path:** /drive/v3/changes/startPageToken

**New Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/changes/startPageToken?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/changes/startpagetoken?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| driveId | string |  |
| supportsAllDrives | boolean |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googledrive/drive/v3/changes/startPageToken?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3/changes/getStartPageToken

### Lists the changes for a user or shared drive.

**Method:** GET
**LowCodeAPI Path:** /drive/v3/changes

**New Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/changes?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/changes?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| driveId | string |  |
| includeCorpusRemovals | boolean |  |
| includeItemsFromAllDrives | boolean |  |
| includeLabels | string |  |
| includePermissionsForView | string |  |
| includeRemoved | boolean |  |
| pageSize | integer |  |
| pageToken | string |  |
| restrictToMyDrive | boolean |  |
| spaces | string |  |
| supportsAllDrives | boolean |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googledrive/drive/v3/changes?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3/changes/list

### Subscribes to changes for a user.

**Method:** POST
**LowCodeAPI Path:** /drive/v3/changes/watch

**New Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/changes/watch?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/changes/watch?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| driveId | string |  |
| includeCorpusRemovals | boolean |  |
| includeItemsFromAllDrives | boolean |  |
| includeLabels | string |  |
| includePermissionsForView | string |  |
| includeRemoved | boolean |  |
| pageSize | integer |  |
| pageToken | string |  |
| restrictToMyDrive | boolean |  |
| spaces | string |  |
| supportsAllDrives | boolean |  |

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| type | string |  |
| params | object |  |
| address | string |  |
| expiration | string |  |
| id | string |  |
| kind | string |  |
| payload | boolean |  |
| resourceId | string |  |
| resourceUri | string |  |
| token | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/googledrive/drive/v3/changes/watch?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3/changes/watch

### Stop watching resources through this channel.

**Method:** POST
**LowCodeAPI Path:** /drive/v3/channels/stop

**New Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/channels/stop?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/channels/stop?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| type | string |  |
| params | object |  |
| address | string |  |
| expiration | string |  |
| id | string |  |
| kind | string |  |
| payload | boolean |  |
| resourceId | string |  |
| resourceUri | string |  |
| token | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/googledrive/drive/v3/channels/stop?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3/channels/stop

### Creates a comment on a file.

**Method:** POST
**LowCodeAPI Path:** /drive/v3/files/{file_id}/comments

**New Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/files/{file_id}/comments?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/files/file_id/comments?file_id={file_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| file_id | string |  |

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| anchor | string |  |
| content | string |  |
| quotedFileContent | object |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/googledrive/drive/v3/files/{file_id}/comments?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3/comments/create

### Deletes a comment.

**Method:** DELETE
**LowCodeAPI Path:** /drive/v3/files/{file_id}/comments/{comment_id}

**New Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/files/{file_id}/comments/{comment_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/files/file_id/comments/comment_id?comment_id={comment_id}&file_id={file_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| comment_id | string |  |
| file_id | string |  |

**Example Request (New Format):**

```bash
curl -X DELETE 'https://api.lowcodeapi.com/googledrive/drive/v3/files/{file_id}/comments/{comment_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3/comments/delete

### Gets a comment by ID.

**Method:** GET
**LowCodeAPI Path:** /drive/v3/files/{file_id}/comments/{comment_id}

**New Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/files/{file_id}/comments/{comment_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googledrive/drive/v3/files/file_id/comments/comment_id?comment_id={comment_id}&file_id={file_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| comment_id | string |  |
| file_id | string |  |

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| includeDeleted | boolean |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googledrive/drive/v3/files/{file_id}/comments/{comment_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/drive/api/reference/rest/v3/comments/get


## Usage Examples

### Example 1: Upload a File

Uploading a file to storage:

```bash
# Upload a file - no path parameters needed
curl -X POST "https://api.lowcodeapi.com/googledrive/upload?api_token=YOUR_API_TOKEN" \
  -F "file=@/path/to/your/file.jpg"

# Response returns file ID or URL
```

### Example 2: List Files

```bash
# Get list of all files
curl -X GET "https://api.lowcodeapi.com/googledrive/files?api_token=YOUR_API_TOKEN"
```

### Example 3: Retrieve Specific File

```bash
# Get specific file by ID
curl -X GET "https://api.lowcodeapi.com/googledrive/files/{FILE_ID}?api_token=YOUR_API_TOKEN"

# Delete file
curl -X DELETE "https://api.lowcodeapi.com/googledrive/files/{FILE_ID}?api_token=YOUR_API_TOKEN"
```

## Error Handling

LowCodeAPI returns standard HTTP status codes. Common errors:

| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |

All error responses include error details:

```json
{
  "data": {
    "error": {
      "message": "Error description",
      "code": "ERROR_CODE"
    }
  }
}
```

## Complete Endpoint Reference

| Endpoint | Method | Category |
|----------|--------|----------|
| Gets information about the user the user's Drive a... | GET | About |
| Gets a specific app. | GET | Apps |
| Lists a user's installed apps. | GET | Apps |
| Gets the starting pageToken for listing future cha... | GET | Changes |
| Lists the changes for a user or shared drive. | GET | Changes |
| Subscribes to changes for a user. | POST | Changes |
| Stop watching resources through this channel. | POST | Channels |
| Creates a comment on a file. | POST | Comments |
| Deletes a comment. | DELETE | Comments |
| Gets a comment by ID. | GET | Comments |
| Lists a file's comments. | GET | Comments |
| Updates a comment with patch semantics. | PATCH | Comments |
| Creates a shared drive. | POST | Drives |
| Permanently deletes a shared drive for which the u... | DELETE | Drives |
| Gets a shared drive's metadata by ID. | GET | Drives |
| Hides a shared drive from the default view. | POST | Drives |
| Lists the user's shared drives. | GET | Drives |
| Restores a shared drive to the default view. | POST | Drives |
| Updates the metadata for a shared drive. | PATCH | Drives |
| Creates a copy of a file and applies any requested... | POST | Files |
| Creates a file. | POST | Files |
| Permanently deletes a file owned by the user witho... | DELETE | Files |
| Permanently deletes all trashed files of a user or... | DELETE | Files |
| Exports a Google Workspace document to the request... | GET | Files |
| Generates a set of file IDs which can be provided ... | GET | Files |
| Gets a file's metadata or content by ID. | GET | Files |
| Lists or searches files. | GET | Files |
| Lists the labels on a file. | GET | Files |
| Modifies the set of labels on a file. | POST | Files |
| Updates a file's metadata and/or content. | PATCH | Files |
| Subscribe to changes on a file. | POST | Files |
| Creates a permission for a file or shared drive. | POST | Permissions |
| Deletes a permission. | DELETE | Permissions |
| Gets a permission by ID. | GET | Permissions |
| Lists a file's or shared drive's permissions. | GET | Permissions |
| Updates a permission with patch semantics. | PATCH | Permissions |
| Creates a reply to a comment. | POST | Replies |
| Deletes a reply. | DELETE | Replies |
| Gets a reply by ID. | GET | Replies |
| Lists a comment's replies. | GET | Replies |
| Updates a reply with patch semantics. | PATCH | Replies |
| Permanently deletes a file version. | DELETE | Revisions |
| Gets a revision's metadata or content by ID. | GET | Revisions |
| Lists a file's revisions. | GET | Revisions |
| Updates a revision with patch semantics. | PATCH | Revisions |
| List access proposals | GET | Access Proposals |
| Get access proposal | GET | Access Proposals |
| Resolve access proposal | POST | Access Proposals |
| Get operation | GET | Operations |
| Download file | POST | Files |
| Batch requests | POST | Batch |

## API Definition Endpoints

You can fetch the complete API specification for this provider:

**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/googledrive/openapi'
```

**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/googledrive/definition'
```

## Response Format

All responses are wrapped in a `data` key:

```json
{
  "data": {
    // Actual response from provider (object or array)
  }
}
```