Model tree
Message
An email message.ModifyMessageRequest
Request body for Gmailusers.messages.modify endpoint.
BatchModifyMessagesRequest
Request body for Gmailusers.messages.batchModify endpoint.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Every object and enum the Message tools accept.
| Field | Type | Description |
|---|---|---|
threadId | string | The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met: 1. The requested threadId must be specified on the Message or Draft.Message you supply with your request. 2. The References and In-Reply-To headers must be set in compliance with the RFC 2822 standard. 3. The Subject headers must match. |
raw * | EmailContentrfc822_base64request_only | Email message content |
users.messages.modify endpoint.
| Field | Type | Description |
|---|---|---|
addLabelIds | string[] | A list of IDs of labels to add to this message. You can add up to 100 labels with each update. max 100 items |
removeLabelIds | string[] | A list of IDs of labels to remove from this message. You can remove up to 100 labels with each update. max 100 items |
users.messages.batchModify endpoint.
| Field | Type | Description |
|---|---|---|
ids * | string[] | The IDs of the messages to modify. There is a limit of 1000 ids per request. max 1000 items |
addLabelIds | string[] | A list of label IDs to add to messages. |
removeLabelIds | string[] | A list of label IDs to remove from messages. |
| Value |
|---|
minimal |
full |
raw |
metadata |
Was this page helpful?