Google Drive
API actions for the Google Drive integration.
Google Drive
Upload, move, and manage files in Google Drive.
Create folder
Create a folder in Google Drive and return a link to it.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
folder_name | string | Yes | The name of the folder to create |
parent_folder_url | string | No | The Google Drive URL of the parent folder |
Response
"https://drive.google.com/drive/folders/newfolder123"Delete file
Delete a file from Google Drive.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_url | string | Yes | The Google Drive URL of the file to delete |
Response
trueDownload file from URL
Download a Google Drive file given its sharing URL.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_url | string | Yes | The Google Drive file sharing URL |
download_dir | string | No | Directory to save the downloaded file |
Response
{
"content_type": "application/pdf",
"filename": "downloaded_file.txt",
"size_bytes": 1024
}Duplicate file
Duplicate a file in Google Drive and return a link to the copy.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_url | string | Yes | The Google Drive URL of the file to duplicate |
destination_folder_url | string | No | The Google Drive URL of the destination folder for the copy |
new_name | string | No | The name for the duplicated file |
Response
"https://drive.google.com/file/d/xyz789/view"Move file
Move a file to a different folder in Google Drive.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_url | string | Yes | The Google Drive URL of the file to move |
destination_folder_url | string | Yes | The Google Drive URL of the destination folder |
Response
"https://drive.google.com/file/d/abc123/view"Upload file
Upload a file to Google Drive and return a link to it.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_path | string | Yes | Uploaded file reference from the file picker. |
folder_url | string | No | The Google Drive folder URL to upload the file to |
mime_type | string | No | The MIME type of the file (e.g., 'application/pdf') |
Response
"https://drive.google.com/file/d/abc123/view"