| Enums | |
|---|---|
| minimal | Returns only email message ID and labels; does not return the email headers, body, or payload. | 
| full | Returns the full email message data with body content parsed in the payloadfield; therawfield is not used. Format cannot be used when accessing the api using the gmail.metadata scope. | 
| raw | Returns the full email message data with body content in the rawfield as a base64url encoded string; thepayloadfield is not used. Format cannot be used when accessing the api using the gmail.metadata scope. | 
| metadata | Returns only email message ID, labels, and email headers. | 
      Format
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-24 UTC.