Google: Gets the specified message attachment — response body
Gets the specified message attachment.: response body. Complete fields and constraints for contract 2026-10-27.
API reference · Contract 2026-10-27
SDK schema: Gets the specified message attachment — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The body of a single MIME message part. |
attachmentId | string | Optional | When present, contains the ID of an external attachment that can be retrieved in a separate `messages.attachments.get` request. When not present, the entire content of the message part body is contained in the data field. |
data | string | Optional | The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment. Format: byte |
size | JSON | Optional | |
size (anyOf 1) | integer | Alternative | Number of bytes for the message part data (encoding notwithstanding). Format: int32 |
size (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |