---
title: "Get Email"
description: "Load one Gmail message by id with headers, body, and attachment metadata."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/gmail/get-email"
---
# Get Email

> Load one Gmail message by id with headers, body, and attachment metadata.

<block-meta block="Yes" capability="Gmail" channels="Any" folder="google/gmail" group="Gmail" groupTo="/build/workflows/blocks/gmail" icon="i-lucide-mail-open" pipe="Value" scope="Any" service="Google" tool="Yes" type="google.gmail.get_email">



</block-meta>

**Get Email** loads one message from the connected Gmail mailbox. Pass the Gmail **message id** (not the Message-ID header). [List Emails](https://docs.vettero.com/build/workflows/blocks/gmail/list-emails) and [Mail Received](https://docs.vettero.com/build/event-handlers/mail-received) both provide that id.

Attachment entries are metadata only (`filename`, type, size, attachment id). Use [Get Attachment](https://docs.vettero.com/build/workflows/blocks/gmail/get-attachment) to download a file into workspace storage.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Message ID
      </strong>
    </td>
    
    <td>
      Gmail message id (required)
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the message is loaded
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`):

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Gmail message id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        threadId
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Thread id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labelIds
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Message labels
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        snippet
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Short preview
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        internalDate
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Internal date
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subject
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Subject
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        from.name
      </code>
      
       / <code>
        from.email
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      From
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        to[]
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      To addresses (<code>
        name
      </code>
      
      , <code>
        email
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        cc[]
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Cc addresses (<code>
        name
      </code>
      
      , <code>
        email
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        bcc[]
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Bcc addresses (<code>
        name
      </code>
      
      , <code>
        email
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        replyTo.name
      </code>
      
       / <code>
        replyTo.email
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Reply-To
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        messageId
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Message-ID header
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inReplyTo
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      In-Reply-To header
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        references
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      References header
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        isReply
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Whether the message is a reply
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dateHeader
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Date header
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        textPlain
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Plain-text body
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        textHtml
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      HTML body
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        textParsed
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Parsed body
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        attachments[]
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Attachment metadata (<code>
        filename
      </code>
      
      , <code>
        mimeType
      </code>
      
      , <code>
        size
      </code>
      
      , <code>
        attachmentId
      </code>
      
      )
    </td>
  </tr>
</tbody>
</table>

## Use case

- After [List Emails](https://docs.vettero.com/build/workflows/blocks/gmail/list-emails), loop with [For Of](https://docs.vettero.com/build/workflows/blocks/loops/for-of) and load each message’s body.
- In a [Mail Received](https://docs.vettero.com/build/event-handlers/mail-received) workflow, `args.message` already has this shape — use this block when you only have an id from a later step.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
