Gmail draft create profile

org.intentschema.communication.email.draft.create.v1@com.google.gmail.v1

JSON: bare · @sha256:7eb347a57a1e…
Hash: sha256:7eb347a57a1ee8f14f5f50a43b0dc5535e22bbda0cca3103df616c06423c2e95

Gmail profile for email draft create.

Implements: Create email draft (org.intentschema.communication.email.draft.create.v1)

Payload

FieldTypeDescription
target *Target(system = "gmail", required: system)
object *object
idempotency_keystring
object
FieldTypeDescription
fromstring (email)[]
tostring (email)[]
ccstring (email)[]
bccstring (email)[]
subjectstring
textBodystring
htmlBodystring
attachmentsBlobRef[]
inReplyTostringOptional message id this draft is in reply to.

Result

FieldTypeDescription
external_id *stringProvider draft id.
created_atstring (date-time)

API mapping

FieldValue
base_urlhttps://gmail.googleapis.com
methodPOST
path/gmail/v1/users/me/drafts
scopeshttps://www.googleapis.com/auth/gmail.compose
docshttps://developers.google.com/gmail/api/reference/rest/v1/users.drafts/create

Field mapping

Intent fieldAPI parameter
object.tomessage.raw To header
object.subjectmessage.raw Subject header
object.textBodymessage.raw text/plain part
object.htmlBodymessage.raw text/html part
object.inReplyTomessage.raw In-Reply-To header