Gmail Logo

Gmail API Integration Profile

Information and guides about integrating with Gmail API

Add Gmail Integration to Your Product

Gmail Users Drafts List in Gmail API

Lists the drafts in the user's mailbox.

Input schema fields
Field NameAPI KeyType
Path ParameterspathParametersobject
User IdpathParameters.userIdstring
Queryqueryobject
Max Resultsquery.maxResultsinteger
Page Tokenquery.pageTokenstring
Output schema fields
Field NameAPI KeyTypeDescription
Draftsdraftsarray of itemsList of drafts. Note that the `Message` property in each `Draft` resource only contains an `id` and a `threadId`. The messages.get method can fetch additional message details.
Iditem.idstringThe immutable ID of the draft.
Messageitem.messageobjectAn email message.
Idmessage.idstringThe immutable ID of the message.
Thread Idmessage.threadIdstringThe ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met: 1. The requested `threadId` must be specified on the `Message` or `Draft.Message` you supply with your request. 2. The `References` and `In-Reply-To` headers must be set in compliance with the [RFC 2822](https://tools.ietf.org/html/rfc2822) standard. 3. The `Subject` headers must match.

Build every single integration your customers need with AI

Book a demo