Skip to main content

emailDrafts

Requires permission sales:quote:read.

Lists the caller's own unsent email drafts, most recently updated first. Requires permission to read quotes.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query EmailDrafts {
emailDrafts {
id
type
createdAt
bodyHtml
ccEmails
inReplyToId
}
}

Response:

{
"data": {
"emailDrafts": [
{
"id": "id",
"type": "string",
"createdAt": "2025-01-15T00:00:00Z",
"bodyHtml": "string",
"ccEmails": [
"string"
],
"inReplyToId": "string"
}
]
}
}
emailDrafts: [EmailDraft!]!

Type​

EmailDraft object​

A saved email draft.