Googledrive

Learn how to use Googledrive with Composio

Overview

Enum

GOOGLEDRIVE

Description

Connect to Google Drive!

Authentication Details

client_id
stringRequired
client_secret
stringRequired
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to https://www.googleapis.com/auth/drive.file,https://www.googleapis.com/auth/userinfo.email
token
stringRequired

Actions

Download a file.

Action Parameters

file_id
stringRequired
mime_type
string

Action Response

data
object
successful
boolean
error

Add file sharing preferences, including domain-level permissions requiring a domain field.

Action Parameters

file_id
stringRequired
role
stringRequired
type
stringRequired
email_address
string
domain
string

Action Response

data
object
successful
boolean
error

Copy a file

Action Parameters

file_id
stringRequired
new_title
string

Action Response

data
object
successful
boolean
error

Create a new folder in google drive. if parent id is provided, it must be a valid google drive folder id. the folder will be created in the root directory if no parent id is specified.

Action Parameters

folder_name
stringRequired
parent_id
string

Action Response

data
object
successful
boolean
error

Find files present in google drive. can be used to search for files by name and content.

Action Parameters

folder_id
string
name_exact
string
name_contains
string
name_not_contains
string
full_text_contains
string
full_text_not_contains
string
modified_after
string
include_items_from_all_drives
boolean
supports_all_drives
boolean
starred
boolean
mime_type
string
page_size
integerDefaults to 5
page_token
string

Action Response

data
object
successful
boolean
error

Create a file from text. max 10mb in size.

Action Parameters

file_name
stringRequired
text_content
stringRequired
parent_id
string
mime_type
stringDefaults to text/plain

Action Response

data
object
successful
boolean
error

Parse a file. max 10mb in size. (DEPRECATED use DOWNLOAD_FILE)

Action Parameters

file_id
stringRequired
mime_type
string

Action Response

data
object
successful
boolean
error

Delete folder or file

Action Parameters

file_id
stringRequired

Action Response

data
object
successful
boolean
error

Upload a file to google drive. max file size is 5mb.

Action Parameters

file_to_upload
objectRequired
folder_to_upload_to
string

Action Response

data
object
successful
boolean
error

Find folder

Action Parameters

name_exact
string
name_contains
string
name_not_contains
string
full_text_contains
string
full_text_not_contains
string
modified_after
string
starred
boolean

Action Response

data
object
successful
boolean
error

Edit a file. max 10mb in size.

Action Parameters

file_id
stringRequired
mime_type
stringDefaults to text/plain
content
stringRequired

Action Response

data
object
successful
boolean
error