GET
gmail_drafts_get.py
Requires
https://www.googleapis.com/auth/gmail.modify. Costs 20 against the provider’s own quota.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Read a saved draft, including the message it holds.
from charter.packs import gmail
result = await gmail.drafts_get.ainvoke({"id": ...})
https://www.googleapis.com/auth/gmail.modify. Costs 20 against the provider’s own quota.| Field | Type | Description |
|---|---|---|
userId | string | The user’s email address. The special value ‘me’ can be used to indicate the authenticated user. defaults to "me" |
id * | string | The ID of the draft to retrieve. |
| Field | Type | Description |
|---|---|---|
format | MessageFormat | The format to return the draft in. Gmail applies ‘full’ when this is absent. ‘minimal’ returns only email message ID and labels; does not return the email headers, body, or payload. ‘full’ returns the full email message data with body content parsed in the payload field; the raw field is not used. ‘raw’ returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used. ‘metadata’ returns only email message ID, labels, and email headers. ‘full’ and ‘raw’ cannot be used when accessing the api using the gmail.metadata scope. |
Was this page helpful?