---
title: "List Drafts"
description: "List Gmail drafts with optional search and paging."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/gmail/list-drafts"
---
# List Drafts

> List Gmail drafts with optional search and paging.

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



</block-meta>

**List Drafts** returns draft ids and message/thread refs. Follow with [Get Draft](https://docs.vettero.com/build/workflows/blocks/gmail/get-draft) or [Send Draft](https://docs.vettero.com/build/workflows/blocks/gmail/send-draft).

Search uses the same syntax as the Gmail search box. Type a query in one line and insert context with `{{ }}` (for example `from:{{ args.email }} newer_than:7d`).

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        Search query (optional)
      </strong>
    </td>
    
    <td>
      Gmail search string. Liquid template, for example <code>
        from:{{ args.email }} is:unread
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Max results
      </strong>
    </td>
    
    <td>
      Page size, 1–500. Default <strong>
        20
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Page token (optional)
      </strong>
    </td>
    
    <td>
      <code>
        nextPageToken
      </code>
      
       from a previous list
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

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

<tbody>
  <tr>
    <td>
      <code>
        drafts
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Each item has <code>
        id
      </code>
      
       and <code>
        message.id
      </code>
      
       / <code>
        message.threadId
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        nextPageToken
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Next page
    </td>
  </tr>
</tbody>
</table>

<block-page-nav>



</block-page-nav>


## Sitemap

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