Google_Mail

Handle Initialize Authorization

post

Handle integration initialization request.

Body
or
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/integrations

No content

Handle Get Integration

get

Handle get integration request.

Path parameters
user_identifierstringRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
get
/connectors/google_mail/integrations/{user_identifier}

No content

Handle Select Integration

post

Handle integration selection request.

Path parameters
user_identifierstringRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/integrations/{user_identifier}

No content

Handle Remove Integration

delete

Handle integration removal request.

Path parameters
user_identifierstringRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
delete
/connectors/google_mail/integrations/{user_identifier}

No content

Handle User Has Integration

get

Handle user integration existence check.

Responses
chevron-right
200

Successful Response

application/json
Responseany
get
/connectors/google_mail/integration-exists
200

Successful Response

No content

Auth Schema

get

Handle authentication schema request.

Responses
chevron-right
200

Successful Response

application/json
Responseany
get
/connectors/google_mail/auth-schema
200

Successful Response

No content

Success Authorize Callback

get

Handle successful authorization callback.

Responses
chevron-right
200

Successful Response

application/json
Responseany
get
/connectors/google_mail/success-authorize-callback
200

Successful Response

No content

Create Draft

post

Create a new draft.

Note: To create a draft, you need to provide either the recipient's email address, subject, or the body of the email.

Args: request: The request object. http_headers: The HTTP headers.

Body

Create draft request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
mail_ccany ofOptional

A list of email addresses (carbon copy). Each item must be a string containing a valid email address.

string[]Optional
or
nullOptional
mail_bccany ofOptional

A list of email addresses (blind carbon copy). Each item must be a string containing a valid email address.

string[]Optional
or
nullOptional
mail_fromany ofOptional

Sender email address. If provided, has to be a valid email address. You can use aliases.

stringOptional
or
nullOptional
mail_subjectany ofOptional

Subject of the email.

stringOptional
or
nullOptional
mail_bodyany ofOptional

Body of the email. Can be plain text or HTML.

stringOptional
or
nullOptional
mail_attachmentsany ofOptional

List of files to attach to the email. Each file should be an InputFile object.

string · binary[]Optional
or
nullOptional
mail_toany ofOptional

A list of recipient email addresses (TO field). Each item must be a string containing a valid email address.

string[]Optional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/create_draft

List Drafts

post

List drafts in the user's mailbox.

Args: request: The request object. http_headers: The HTTP headers.

Body

List drafts request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
include_spam_trashany ofOptional

Include drafts in spam and trash.

Default: false
booleanOptional
or
nullOptional
max_resultsany ofOptional

Maximum number of drafts to return.

integerOptional
or
nullOptional
page_tokenany ofOptional

Token to retrieve the next page of results.

stringOptional
or
nullOptional
queryany ofOptional

Search query to filter drafts. Can be a string or a list of strings.

Default: ""
stringOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/list_drafts

Send Draft

post

Send a draft.

Note: To send a draft, the draft should be have a valid Recipient Email Address.

Args: request: The request object. http_headers: The HTTP headers.

Body

Send draft request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
draft_idstringRequired

ID of the draft to send.

Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/send_draft

Get Draft

post

Get a draft.

Args: request: The request object. http_headers: The HTTP headers.

Body

Get draft request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
draft_idstringRequired

ID of the draft to retrieve.

formatany ofOptional

Format of the draft. Can be 'full', 'raw', 'metadata', or 'minimal'.

Default: full
string · enumOptionalPossible values:
or
nullOptional
decodeany ofOptional

Decode the draft body. If set to True, the draft body will be decoded from base64url encoding, you will get the draft body as a string.

Default: false
booleanOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/get_draft

Modify Draft

post

Update a draft.

Args: request: The request object. http_headers: The HTTP headers.

Body

Update draft request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
mail_ccany ofOptional

A list of email addresses (carbon copy). Each item must be a string containing a valid email address.

string[]Optional
or
nullOptional
mail_bccany ofOptional

A list of email addresses (blind carbon copy). Each item must be a string containing a valid email address.

string[]Optional
or
nullOptional
mail_fromany ofOptional

Sender email address. If provided, has to be a valid email address. You can use aliases.

stringOptional
or
nullOptional
mail_subjectany ofOptional

Subject of the email.

stringOptional
or
nullOptional
mail_bodyany ofOptional

Body of the email. Can be plain text or HTML.

stringOptional
or
nullOptional
mail_attachmentsany ofOptional

List of files to attach to the email. Each file should be an InputFile object.

string · binary[]Optional
or
nullOptional
draft_idstringRequired

ID of the draft to update.

mail_toany ofOptional

A list of recipient email addresses (TO field). Each item must be a string containing a valid email address.

string[]Optional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/modify_draft

List Labels

post

List all labels in the user's mailbox.

Args: http_headers: The HTTP headers.

Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/list_labels
200

Successful Response

No content

Label Stats

post

Get total emails per label with optional waiting.

Args: request (TotalEmailPerLabelRequest): The request object. http_headers (ExposedDefaultHeaders): The HTTP headers.

Body

Total Email Per Label request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
waitingany ofOptional

Waiting mode. If True, wait for completion and return actual data (sync mode). If False or None, process in background and return immediately (background mode).

booleanOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/total_email_perlabel

Get Label Details

post

Get label details by ID.

Args: request: The request object. http_headers: The HTTP headers.

Body

Get Label Details request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
label_idstringRequired

ID of the label to retrieve details for.

Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/get_label_details

No content

Create Labels

post

Create a new label.

Args: request: The request object. http_headers: The HTTP headers.

Body

Create Labels request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
label_list_visibilityany ofOptional

Visibility of the label in the label list. Can be 'labelShow', 'labelShowIfUnread', or 'labelHide'.

Default: labelShow
stringOptional
or
nullOptional
message_list_visibilityany ofOptional

Visibility of the label in the message list. Can be 'show' or 'hide'.

Default: show
stringOptional
or
nullOptional
typeany ofOptional

The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. Can be 'user' or 'system'.

Default: user
stringOptional
or
nullOptional
bgcolorany ofOptional

Background color of the label. Should be a hex color code (including the #). Use one of the predefined color values from these values: #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, #fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765

stringOptional
or
nullOptional
textcolorany ofOptional

Text color of the label. Should be a hex color code (including the #). Use one of the predefined color values from these values: #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, #fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765

stringOptional
or
nullOptional
namestringRequired

Name of the label. Must be between 1 and 255 characters long. Cannot be empty or contain only whitespace characters.

Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/create_labels

No content

Modify Labels

post

Modify an existing label.

Args: request: The request object. http_headers: The HTTP headers.

Body

Modify Labels request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
label_list_visibilityany ofOptional

Visibility of the label in the label list. Can be 'labelShow', 'labelShowIfUnread', or 'labelHide'.

Default: labelShow
stringOptional
or
nullOptional
message_list_visibilityany ofOptional

Visibility of the label in the message list. Can be 'show' or 'hide'.

Default: show
stringOptional
or
nullOptional
typeany ofOptional

The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. Can be 'user' or 'system'.

Default: user
stringOptional
or
nullOptional
bgcolorany ofOptional

Background color of the label. Should be a hex color code (including the #). Use one of the predefined color values from these values: #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, #fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765

stringOptional
or
nullOptional
textcolorany ofOptional

Text color of the label. Should be a hex color code (including the #). Use one of the predefined color values from these values: #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, #fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765

stringOptional
or
nullOptional
label_idstringRequired

ID of the label to modify.

nameany ofOptional

Name of the label. Must be between 1 and 255 characters long. Cannot be empty or contain only whitespace characters.

stringOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/modify_labels

No content

Delete Labels

post

Delete a label by ID.

Args: request: The request object. http_headers: The HTTP headers.

Body

Delete Labels request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
label_idstringRequired

ID of the label to delete.

Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/delete_labels

No content

Send Email

post

Create a new email.

Args: request: The request object. http_headers: The HTTP headers.

Body

Create Emails request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
mail_ccany ofOptional

A list of email addresses (carbon copy). Each item must be a string containing a valid email address.

string[]Optional
or
nullOptional
mail_bccany ofOptional

A list of email addresses (blind carbon copy). Each item must be a string containing a valid email address.

string[]Optional
or
nullOptional
mail_fromany ofOptional

Sender email address. If provided, has to be a valid email address. You can use aliases.

stringOptional
or
nullOptional
mail_subjectany ofOptional

Subject of the email.

stringOptional
or
nullOptional
mail_bodyany ofOptional

Body of the email. Can be plain text or HTML.

stringOptional
or
nullOptional
mail_attachmentsany ofOptional

List of files to attach to the email. Each file should be an InputFile object.

string · binary[]Optional
or
nullOptional
mail_tostring[]Required

A list of recipient email addresses (TO field).

in_reply_toany ofOptional

Message ID of the email being replied to. Used for threading replies.

stringOptional
or
nullOptional
referencesany ofOptional

References header for email threading. Contains space-separated Message-IDs of all emails in the conversation thread (chronological order). For simple reply: same as in_reply_to. For long threads: ' '. Optional for Gmail (uses threadId primarily), but recommended for compatibility with other email clients.

stringOptional
or
nullOptional
thread_idany ofOptional

Thread ID to associate this email with an existing conversation thread.

stringOptional
or
nullOptional
include_signatureany ofOptional

Set to True will include signature in the email body when it sent (if available).

Default: false
booleanOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/send_email

List Emails

post

List emails in the user's mailbox.

Args: request: The request object. http_headers: The HTTP headers.

Body

List Emails request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
include_spam_trashany ofOptional

Include Emails in spam and trash.

Default: false
booleanOptional
or
nullOptional
label_idsany ofOptional

Only return Emails with these label IDs.

stringOptional
or
nullOptional
max_resultsany ofOptional

Maximum number of Emails to return.

integerOptional
or
nullOptional
page_tokenany ofOptional

Page token to retrieve the next page of results.

stringOptional
or
nullOptional
queryany ofOptional

Only return Emails matching the specified query. For more information, see the Gmail API documentation.

stringOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/list_emails

Get Email Details

post

Get email details by ID.

Args: request: The request object. http_headers: The HTTP headers.

Body

Get Email Details request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
email_idstringRequired

ID of the email to retrieve.

formatany ofOptional

Format of the email. Can be 'full', 'raw', 'metadata', or 'minimal'.

Default: full
string · enumOptionalPossible values:
or
nullOptional
metadata_headersany ofOptional

List of headers to return in the metadata format.

string[]Optional
or
nullOptional
decodeany ofOptional

Decode the email body. If set to True, the email body will be decoded from base64url encoding, you will get the email body as a string.

Default: false
booleanOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/get_email_details

Modify Email

post

Modify email labels.

Args: request: The request object. http_headers: The HTTP headers.

Body

Modify Email request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
email_idstringRequired

ID of the email to modify.

add_labelsany ofOptional

List of labels to add to the email.

string[]Optional
or
nullOptional
remove_labelsany ofOptional

List of labels to remove from the email.

string[]Optional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/modify_email

Delete Email

post

Delete email by ID.

Args: request: The request object. http_headers: The HTTP headers.

Body

Delete Email request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
email_idstringRequired

ID of the email to delete.

Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/delete_email

Trash Email

post

Trash email by ID.

Args: request: The request object. http_headers: The HTTP headers.

Body

Trash Email request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
email_idstringRequired

ID of the email to move to trash.

Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/trash_email

Untrash Email

post

Untrash email by ID.

Args: request: The request object. http_headers: The HTTP headers.

Body

Untrash Email request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
email_idstringRequired

ID of the email to move out of trash.

Responses
chevron-right
200

Successful Response

application/json
post
/connectors/google_mail/untrash_email

List Threads

post

List threads in the user's mailbox.

Args: request: The request object. http_headers: The HTTP headers.

Body

List Threads request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
include_spam_trashany ofOptional

Include threads in spam and trash.

Default: false
booleanOptional
or
nullOptional
label_idsany ofOptional

Only return threads with these label IDs.

stringOptional
or
nullOptional
max_resultsany ofOptional

Maximum number of threads to return.

integerOptional
or
nullOptional
page_tokenany ofOptional

Page token to retrieve the next page of results.

stringOptional
or
nullOptional
queryany ofOptional

Only return threads matching the specified query. For more information, see the Gmail API documentation.

stringOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/list_threads

No content

Thread Details

post

Get details of a specific thread.

Args: request: The request object. http_headers: The HTTP headers.

Body

Get Thread Details request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
thread_idstringRequired

ID of the thread to retrieve.

formatany ofOptional

Format of the thread. Can be 'full', 'metadata', or 'minimal'.

Default: full
string · enumOptionalPossible values:
or
nullOptional
metadata_headersany ofOptional

List of headers to return in the metadata format.

string[]Optional
or
nullOptional
decodeany ofOptional

Decode the thread body. If set to True, the thread body will be decoded from base64url encoding, you will get the thread body as a string.

Default: false
booleanOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/thread_details

No content

Modify Thread

post

Modify labels of a specific thread.

Args: request: The request object. http_headers: The HTTP headers.

Body

Modify Thread Labels request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
thread_idstringRequired

ID of the thread to modify.

add_labelsany ofOptional

List of labels to add to the thread.

string[]Optional
or
nullOptional
remove_labelsany ofOptional

List of labels to remove from the thread.

string[]Optional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/modify_thread

No content

Get Auto Reply

post

Get auto reply settings.

Args: request: The request object. http_headers: The HTTP headers.

Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/get_auto_reply
200

Successful Response

No content

Set Auto Reply

post

Set auto reply settings.

Args: request: The request object. http_headers: The HTTP headers.

Body

Set Auto Reply Settings request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
enable_auto_replyany ofOptional

True or False. Flag that determines whether the auto-reply feature is enabled or disabled. If this is set to False, the auto-reply feature will be disabled and no auto-replies will be sent.

Default: false
booleanOptional
or
nullOptional
response_subjectany ofOptional

Optional text to prepend to the subject line in vacation responses. In order to enable auto-replies, either the response subject or the response body must be nonempty.

stringOptional
or
nullOptional
response_bodyany ofOptional

Response body in plain text format.

stringOptional
or
nullOptional
response_body_htmlany ofOptional

Response body in HTML format. Gmail will sanitize the HTML before storing it. If both response_body_plain_text and response_body_html are specified, response_body_html will be used.

stringOptional
or
nullOptional
restrict_to_contactsany ofOptional

True or False. Flag that determines whether responses are sent to recipients who are not in the user's list of contacts.

Default: false
booleanOptional
or
nullOptional
restrict_to_domainany ofOptional

True or False. Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for Google Workspace users.

Default: false
booleanOptional
or
nullOptional
start_timeany ofOptional

String format (yyyy-mm-dd) timestamp in milliseconds. An optional start time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives after the start time. If both startTime and endTime are specified, startTime must precede endTime.

stringOptional
or
nullOptional
end_timeany ofOptional

String format (yyyy-mm-dd) timestamp in milliseconds. An optional end time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives before the end time. If both startTime and endTime are specified, startTime must precede endTime. Note that when an endTime is input, it is interpreted as one day earlier than the provided date. For example, if endTime is set to '2023-05-15', the auto-replies will cease on '2023-05-14'.

stringOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/set_auto_reply

No content

Get Attachment

post

Download attachment by ID.

Body

Get Attachments request model.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
message_idstringRequired

ID of the message to retrieve attachments from.

attachment_idstringRequired

ID of the attachment to retrieve.

Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/get_attachment

No content

Userinfo

post

Get user information from Google OAuth2 API.

Args: http_headers: The HTTP headers object.

Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/google_mail/userinfo
200

Successful Response

No content

Last updated