
Gmail API Integration Profile
Information and guides about integrating with Gmail API
Add Gmail Integration to Your ProductGmail Users Drafts List in Gmail API
Lists the drafts in the user's mailbox.
Input schema fields
Field Name | API Key | Type | |
---|---|---|---|
Path Parameters | pathParameters | object | |
User Id | pathParameters.userId | string | |
Query | query | object | |
Max Results | query.maxResults | integer | |
Page Token | query.pageToken | string |
Output schema fields
Field Name | API Key | Type | Description |
---|---|---|---|
Drafts | drafts | array of items | List 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. |
Id | item.id | string | The immutable ID of the draft. |
Message | item.message | object | An email message. |
Id | message.id | string | The immutable ID of the message. |
Thread Id | message.threadId | string | The 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. |