title: Retrieve email/message body in html using Gmail API
body: <p>Is there any way to retrieve message body in html form using GMail api ?</p>
  
  <p>I have already gone through the <a href="https://developers.google.com/gmail/api/v1/reference/users/messages/get" rel="noreferrer"><code>message.get</code></a> docs. Tried changing the <code>format</code> param to <code>full</code>, <code>minimal</code> &amp; <code>raw</code>. But it did not help. It's returning the plain text of mail body. </p>
  
  <hr>
  
  <p>Description of format values:</p>
  
  <p>"full": Returns the parsed email message content in the payload field and the raw field is not used. (default)</p>
  
  <p>"minimal": Only returns email message metadata such as identifiers and labels, it does not return the email headers, body, or payload.</p>
  
  <p>"raw": Returns the entire email message content in the raw field as a string and the payload field is not used. This includes the identifiers, labels, metadata, MIME structure, and small body parts (typically less than 2KB).</p>
  
  <hr>
  
  <p>Can't we simply get message body in html form or is there any other way to do this so that mail is displayed on the screen with very minimal difference when they see in my app or GMail ? </p>