Gmail Logo

Gmail API Integration Profile

Information and guides about integrating with Gmail API

Add Gmail Integration to Your App

Gmail Users Drafts Create in Gmail API

Creates a new draft with the DRAFT label.

Input schema fields
Field NameAPI KeyTypeDescription
Path ParameterspathParametersobject
User IdpathParameters.userIdstring
Queryqueryobject
DatadataobjectA draft email in the user's mailbox.
Iddata.idstringThe immutable ID of the draft.
Output schema fields
Field NameAPI KeyTypeDescription
IdidstringThe immutable ID of the draft.
MessagemessageobjectAn 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.
Label Idsmessage.labelIdsarray of stringsList of IDs of labels applied to this message.

Build every single integration your customers need with AI

Talk to an expert