IntegrationsGoogle workspaceActions
Send Gmail message
Send a small text or HTML email as the connected Google principal.
gmail.messages.send · Google Workspace · v1
Details
Scopes
https://www.googleapis.com/auth/gmail.send
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false; oneOf branch 1: required body / branch 2: required body_html |
to | string | Yes | minLength 3; maxLength 320; pattern ^[^\u0000-\u001F\u007F]+$ |
subject | string | Yes | minLength 1; maxLength 998; pattern ^[^\u0000-\u001F\u007F]+$ |
body | string | No | minLength 1; maxLength 24576 |
body_html | string | No | minLength 1; maxLength 24576 |
cc | string | No | minLength 3; maxLength 320; pattern ^[^\u0000-\u001F\u007F]+$ |
bcc | string | No | minLength 3; maxLength 320; pattern ^[^\u0000-\u001F\u007F]+$ |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
id | string | Yes | minLength 1; maxLength 256 |
thread_id | string | Yes | minLength 1; maxLength 256 |
Raw schema
Input
{
"type": "object",
"additionalProperties": false,
"properties": {
"to": {
"type": "string",
"minLength": 3,
"maxLength": 320,
"pattern": "^[^\\u0000-\\u001F\\u007F]+$"
},
"subject": {
"type": "string",
"minLength": 1,
"maxLength": 998,
"pattern": "^[^\\u0000-\\u001F\\u007F]+$"
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 24576
},
"body_html": {
"type": "string",
"minLength": 1,
"maxLength": 24576
},
"cc": {
"type": "string",
"minLength": 3,
"maxLength": 320,
"pattern": "^[^\\u0000-\\u001F\\u007F]+$"
},
"bcc": {
"type": "string",
"minLength": 3,
"maxLength": 320,
"pattern": "^[^\\u0000-\\u001F\\u007F]+$"
}
},
"required": [
"to",
"subject"
],
"oneOf": [
{
"required": [
"body"
]
},
{
"required": [
"body_html"
]
}
]
}Output
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"thread_id": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"id",
"thread_id"
]
}