Home / profiles
Gmail email send profile
org.intentschema.communication.email.message.send.v1@com.google.gmail.v1
JSON: bare · @sha256:db76ea3dac43… Hash: sha256:db76ea3dac43ca27d340f8cf9b91d75457993629fea998c590f898f81500e34c
Profile for sending email via the Gmail API. Pins target.system to gmail, adds Gmail-specific extensions (threadId for replies, labelIds for tagging), and bounds attachment sizes to the Gmail limit.
Implements: Send email message (org.intentschema.communication.email.message.send.v1)
Payload
Field Type Description
target * Target(system = "gmail", required: system)
object * object
idempotency_keystring
gmail @com.google.gmail object
object
Field Type Description
fromstring (email) []
to * string (email) [] (minItems 1)
ccstring (email) []
bccstring (email) []
subject * string
textBodystring
htmlBodystring
attachmentsBlobRef[]
gmail @com.google.gmail
Field Type Description
threadIdstringGmail thread identifier; set when this send belongs to an existing thread.
labelIdsstring[]Gmail labels to apply to the sent message.
Result
Field Type Description
external_id * stringProvider message id.
thread_idstring
sent_at * string (date-time)
gmail @com.google.gmail object
gmail @com.google.gmail
Field Type Description
historyIdstringGmail mailbox history id at the time of send.
labelIdsstring[]Labels applied to the sent message.
API mapping
Field mapping
Intent field API parameter
object.toraw message To header (RFC 5321 addresses)
object.ccraw message Cc header
object.bccraw message Bcc header
object.fromraw message From header
object.subjectraw message Subject header
object.textBodyraw message text/plain body part
object.htmlBodyraw message text/html body part
object.attachmentsraw message MIME attachment parts
idempotency_keyraw message Message-ID header
gmail.threadIdthreadId (query param or JSON field)
gmail.labelIdslabelIds (JSON field)