Skip to content

email

An email message. Emails are also messages — querying by “message” returns emails alongside WhatsApp, iMessage, etc. RFC headers (message_id, in_reply_to, references) enable threading. Domain relations auto-extracted from sender/recipient addresses.

MetadataValue
Pluralemails
Subtitle fieldauthor
Identityplatform, id
Alsomessage
FieldType
subjectstring
messageIdstring
inReplyTostring
isUnreadboolean
isStarredboolean
isDraftboolean
isSentboolean
isTrashboolean
isSpamboolean
hasAttachmentsboolean
accountEmailstring
sizeEstimateinteger
referencesstring
replyTostring
deliveredTostring
attachmentsjson
toRawstring
ccRawstring
bccRawstring
unsubscribestring
unsubscribeOneClickboolean
manageSubscriptionstring
listIdstring
isAutomatedboolean
precedencestring
mailerstring
returnPathstring
authResultsstring
bodyHtmltext
RelationTarget
fromaccount
toaccount[]
ccaccount[]
bccaccount[]
domaindomain
toDomaindomain[]
ccDomaindomain[]
tagtag[]

From message:

FieldType
isOutgoingboolean
RelationTarget
inConversationconversation
platformproduct
repliesTomessage
toolCallstool_call[]

External standards this shape draws from or aligns with. See Shape design principles for how prior art informs shape design.

  • RFC 5322 (Internet Message Format) — Supersedes RFC 2822. Our messageId/inReplyTo/references/replyTo map directly to Message-ID/In-Reply-To/References/Reply-To headers; toRaw/ccRaw/bccRaw are the literal header values.
  • RFC 2369 + RFC 8058 (List headers, one-click unsubscribe) — Our unsubscribe/unsubscribeOneClick/listId are List-Unsubscribe/List-Unsubscribe-Post/List-ID. RFC 8058 defines the one-click POST semantics.
  • Gmail API Message resource — Practical API mirror. Our sizeEstimate and isUnread/isStarred/isDraft/isSent/isTrash/isSpam correspond to Gmail’s sizeEstimate and labelIds (UNREAD, STARRED, DRAFT, SENT, TRASH, SPAM).
  • mimestreamlist_emails, search_emails, get_email
  • gmaillist_email_stubs, list_emails, search_emails, list_drafts, get_email, get_draft, send_email, reply_email, forward_email, modify_email, trash_email, untrash_email, create_draft, update_draft, send_draft