Skip to content

Google: Gets the specified message — response body — payload

Gets the specified message.: response body, field payload. Complete fields and constraints for contract 2026-10-27.

API reference · Contract 2026-10-27

SDK schema: Gets the specified message — response body — payload

FieldTypePresenceDescription and constraints
$objectRootA single MIME message part.
bodyModelOptionalExpand Gets the specified message attachment — response body
The message part body for this part, which may be empty for container MIME message parts.
filenamestringOptionalThe filename of the attachment. Only present if this message part represents an attachment.
headersarrayOptionalList of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as `To`, `From`, and `Subject`.
headers[]ModelEach itemExpand Gets the specified message — response body — payload headers item
mimeTypestringOptionalThe MIME type of the message part.
partIdstringOptionalThe immutable ID of the message part.
partsarrayOptionalThe child MIME message parts of this part. This only applies to container MIME message parts, for example `multipart/*`. For non- container MIME message part types, such as `text/plain`, this field is empty. For more information, see RFC 1521.
parts[]ModelEach itemExpand Gets the specified message — response body — payload

Referenced models: Gets the specified message — response body — payload, Gets the specified message attachment — response body, Gets the specified message — response body — payload headers item

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.