Gmail
Learn how to use Gmail with Composio
Overview
Enum
GMAIL
Description
Connect to Gmail to send and manage emails.
Authentication Details
OAUTH2
BEARER_TOKEN
Actions
GMAIL_GET_PROFILE
Get the profile of the authenticated user.
Action Parameters
Action Response
GMAIL_REMOVE_LABEL
Action to remove a label in gmail.
Action Parameters
Action Response
GMAIL_SEND_EMAIL
Send an email using gmail’s api.
Action Parameters
Action Response
GMAIL_CREATE_LABEL
Action to create a new label in gmail.
Action Parameters
Action Response
GMAIL_GET_CONTACTS
Action to get info of contacts saved in google for an authorized account. a custom integration with https://www.googleapis.com/auth/contacts.readonly
scope is required to use this action.
Action Parameters
Action Response
GMAIL_LIST_LABELS
List all labels in the user’s gmail account.
Action Parameters
Action Response
GMAIL_FETCH_MESSAGE_BY_THREAD_ID
Fetch messages by thread id from gmail with pagination support. to use pagination, you can set the ‘pagetoken’ in the request to the value of the ‘nextpagetoken’ in the response of the previous action. the ‘nextpagetoken’ is returned in the response of this action (i.e ‘fetchmessagebythreadid’) if there are more results to be fetched. if not provided, the first page of results is returned.
Action Parameters
Action Response
GMAIL_LIST_THREADS
Action to list threads in gmail. this action returns a list of threads and a page token to retrieve the next page of results. the next page token is returned in the response of this action (i.e ‘listthreads’) if there are more results to be fetched, which you can use in the ‘pagetoken’ field of the request to fetch the next page of results. if not available, the last page of results is returned.
Action Parameters
Action Response
GMAIL_FETCH_EMAILS
Action to fetch all emails from gmail.
Action Parameters
Action Response
GMAIL_MODIFY_THREAD_LABELS
Action to modify labels of a thread in gmail.
Action Parameters
Action Response
GMAIL_ADD_LABEL_TO_EMAIL
Modify a label to an email in gmail.
Action Parameters
Action Response
GMAIL_SEARCH_PEOPLE
Provides a list of contacts in the authenticated user’s grouped contacts that matches the search query. the query matches on a contact’s names, nicknames, emailaddresses, phonenumbers, and organizations fields that are from the contact source. a custom integration with https://www.googleapis.com/auth/contacts.readonly
scope is required to use this action.
Action Parameters
Action Response
GMAIL_CREATE_EMAIL_DRAFT
Create a draft email using gmail’s api.
Action Parameters
Action Response
GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID
Fetch messages by message id from gmail.
Action Parameters
Action Response
GMAIL_REPLY_TO_THREAD
Action to reply to an email thread in gmail.
Action Parameters
Action Response
GMAIL_GET_PEOPLE
Action to get contacts info of people.
Action Parameters
Action Response
GMAIL_GET_ATTACHMENT
Get an attachment from a mail.
Action Parameters
Action Response