Every request and response model referenced above, including nested ones (6). The full catalogue is on the Models page.
GmailBatchBody
Fetch several messages in one request, by id (SG-14893; mirrors Outlook's).
| Field | Type | | Description |
|---|
ids | array of string | required | Message ids to fetch. At most 50, or 10 when include_attachments is true. Min items: 1 |
include_attachments | boolean | optional | Whether to return each message's attachment content (base64) as well as its metadata. Lowers the batch cap to 10; attachments may total at most 25 MB across the batch. Default: false |
Used by: POST /rest/beta/gmail/messages/batch
GmailSendBody
One message to send through the authorized Gmail account.
Gmail always stores a sent message in SENT, so there is no equivalent of
Outlook's save_to_sent_items.
| Field | Type | | Description |
|---|
attachments | array of AttachmentIn | optional | Files to attach: at most 10, totalling no more than 3 MB once decoded. Default: [] |
bcc | array of string | optional | Blind-carbon-copy recipients, hidden from other recipients. Default: [] |
body | BodyContent | required | The message body and whether it is plain text or HTML. |
cc | array of string | optional | Carbon-copy recipients, visible to everyone. Default: [] |
subject | string | optional | Subject line. Optional; defaults to an empty subject. Default: "" |
to | array of string | required | Primary recipients. At least one is required; to, cc and bcc together may not exceed 50 addresses. Min items: 1 |
Used by: POST /rest/beta/gmail/send