Developers
Set your API contextPick a region and space ID once. Every sample fills in your base URL.
Where do I find these?

In Coevera: open your space's API application and choose Show Access. It shows the space ID and the base URL, whose host starts with your region.

From the API: if you know the space ID, the discovery endpoint GET /api/discovery/spaces/{space_id} returns its region and base URLs, without credentials.

Only the region and space ID are kept, in this browser. Never paste a key or password here.

More in the quickstart

GraphQLRepositoriesemail

entities.email

Read email records with the email repository, and change them with the email mutations. Same records as the REST Emails entity.

Queries

Fields of entities { email { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
EmailEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[EmailEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: EmailFilterInput, orderBy: [EmailOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[EmailEntity!]!
QUERYgetByCriteria(filter: EmailFilterInput, orderBy: [EmailOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
EmailEntityConnection
QUERYgetChangedFieldsSinceRevision(id: UUID!, revision: Int!)
Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking.
[UUID!]!
QUERYcheckForUnsubscribed(recipients: [SendEmailRecipientParams!]!)
Returns the recipients from the given list who have unsubscribed from emails, so they can be removed before sending.
[SendEmailRecipient!]!
QUERYgetDraftByParentAndMailbox(parentId: UUID!, mailboxId: UUID!)
Returns the saved draft replying to the given email in the given mailbox, or null when there is none.
EmailEntity
QUERYgetLinkedItems(emailId: UUID!, mailboxId: UUID)
Returns the records (accounts, contacts, opportunities, projects, quotes, custom entities) linked to the email's conversation thread.
[EmailLinkedItem!]!

Mutations

KindMutationDoesReturns
MUTATIONmanageSharingEmail(input: ManageSharingEmailInput!)Change who it is shared with GraphQL onlyManageSharingEmailPayload
MUTATIONmanageContentSharingEmail(input: ManageContentSharingEmailInput!)Sets who can read the body of the email. For a mass email the setting is also applied to every individual email sent from it. GraphQL onlyManageContentSharingEmailPayload
MUTATIONcreateEmail(input: CreateEmailInput!, validationLevel: [ValidationLevel!])Create one recordCreateEmailPayload
MUTATIONupdateEmail(input: UpdateEmailInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateEmailPayload
MUTATIONbulkUpdateEmail(input: [CreateOrUpdateEmailInput!]!, deleteInput: [DeleteEmailInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateEmailPayload
MUTATIONdeleteEmail(input: DeleteEmailInput!)Soft-deleteDeleteEmailPayload
MUTATIONupdateLinkedItemsEmail(input: UpdateLinkedItemsEmailInput!)Replaces the records linked to the e-mail and to every other e-mail in its conversation. Linked records missing from linkedItems are unlinked. GraphQL onlyUpdateLinkedItemsEmailPayload

Types

The types this repository uses, each with its fields and their descriptions. Types several repositories share, such as PageInfo and the filter fields, are in the types index.

EmailEntity object 83 fields: isDeleteProtected, id, isDeleted, …

Email message sent or received by users of the space, linked to the contacts, accounts and other records it concerns.

FieldTypeDescription
isDeleteProtectedBoolean!True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only.
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
companyEmailCompanyEmailEntityConfigured company email used as the From / Reply-To. Empty when sent from the user mailbox.
draftParentEmailEmailEntityThe original email a draft was started from (reply/forward source), or empty for a standalone draft.
ownerClientEntitySales user who owns this email. May be empty for unassigned emails.
parentEmailEmailEntityFor mass emails: the master email this copy was generated from. Empty for the master and for non-mass emails.
senderAccountAccountEntityAccount record matched as the sender, or empty when the sender does not match an existing Account.
senderClientClientEntityInternal user matched as the sender, or empty when the sender is external.
senderContactContactEntityContact record matched as the sender, or empty when the sender does not match an existing Contact.
templateEmailTemplateEntityEmail template used to compose this email, or empty when none was used.
additionalHeadersJSONStringExtra raw email headers preserved from the source message, as a JSON object mapping each header name to a string or a list of strings.
bccStringComma-separated list of blind-carbon-copy recipients.
bodyString! (1 args)HTML body of the email, or a localized "Private content" label when the caller cannot read its content.
bodySummaryString! (1 args)Plain-text summary of the body, or a localized "Private content" label when the caller cannot read the email content.
ccStringComma-separated list of carbon-copy recipients.
companyEmailIdIDId of the company email used as the From / Reply-To. Empty when sent from the user mailbox.
contentShareModeContentShareModeEnumHow the email body is shared with non-owners (e.g. Private hides the body, Public makes it visible to anyone with read access on the email envelope).
contentTypeStringMIME content type of the body (e.g. text/html, text/plain).
dateSentDateTimeTimestamp the email was sent. Empty for drafts and scheduled emails not yet sent.
directionEmailDirectionEnum!Direction of the email (Incoming, Outgoing).
draftParentEmailIdIDId of the original email a draft was started from (reply/forward source), or empty for a standalone draft.
draftSettingsEmailDraftSettingsSaved state of an email draft (recipients, subject, body, attachments, template, sharing) used to reopen it for editing. Empty for emails that are not drafts.
errorCodeIntNumeric error code recorded when the email failed to send. Zero when no error occurred.
isDraftBooleanTrue when this email is an unsent draft. Drafts have no dateSent/sendAt and are excluded from the sent/scheduled streams.
isTrackedBooleanTrue when delivery tracking is enabled. Tracked emails generate EmailEvent records on open/click.
originalIdStringExternal identifier of the email on the source mailbox (e.g. IMAP Message-ID). Used to deduplicate when re-syncing.
ownerIdIDId of the email owner.
parentEmailIdIDId of the parent (master) email.
scheduleSettingsEmailScheduleSettingsSending configuration of a scheduled email (sending account, recipients, linked records, follow-up options). Empty when the email is not scheduled.
sendAtDateTimeTimestamp at which a scheduled email is queued to be sent. Empty for immediately-sent emails.
senderStringSender address as it appeared on the email (free-text "From" header).
senderAccountIdIDId of the matched sender account.
senderClientIdIDId of the matched sender user.
senderContactIdIDId of the matched sender contact.
senderEmailAccountIdIDId of the personal email-integration account that sent this email.
sentimentEmailSentimentEnum (1 args)Sentiment of the email. Null without access to the email content.
shareModeShareModeEnumSharing model for the email envelope (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
subjectString! (1 args)Subject line of the email, or a localized "Private content" label when the caller cannot read its content.
tableNameString!Discriminator identifying the concrete record type — always "email" for Email records. Read-only; useful when consuming polymorphic Message results.
templateIdIDId of the email template.
threadIdIDIdentifier grouping emails belonging to the same conversation thread.
toStringComma-separated list of primary recipients.
typeEmailTypeEnumWhether the email is an individual email (Standard) or part of a mass email (Mass).
uidString!IMAP UID of the email on the source mailbox.
revisionIntRevision when entity was lastly changed.
isFavoriteBoolean!True when the current authenticated user has marked this email as favorite. Per-user.
sharingUnitsMessageSharingSalesUnitRelationEntityConnection (8 args)Sales units that have been granted shared access to this email envelope.
sharingClientsMessageSharingClientRelationEntityConnection (8 args)Users that have been granted shared access to this email envelope.
contentSharingUnitsEmailContentSharingSalesUnitRelationEntityConnection (8 args)Sales units that have been granted access to the email body when contentShareMode is restricted.
contentSharingClientsEmailContentSharingClientRelationEntityConnection (8 args)Users that have been granted access to the email body when contentShareMode is restricted.
accountRelationsMessageRelationEntityConnection (8 args)Accounts this email is linked to.
contactRelationsMessageRelationEntityConnection (8 args)Contacts this email is linked to.
projectRelationsMessageRelationEntityConnection (8 args)Projects this email is linked to.
customEntityRelationsMessageRelationEntityConnection (8 args)Custom entity records this email is linked to.
leadRelationsMessageRelationEntityConnection (8 args)Leads this email is linked to.
opportunityRelationsMessageRelationEntityConnection (8 args)Opportunities this email is linked to.
quoteRelationsMessageRelationEntityConnection (8 args)Quotes this email is linked to.
tagsTagRelationEntityConnection (8 args)Tag labels applied to this email. Visible only to users that can read the email body.
documentsCloudObjectRelationEntityConnection (9 args)Attachments and other documents linked to this email.
mailboxIds[UUID!]!Ids of the mailboxes (company or personal) the email envelope belongs to, aggregated from the active emailMailboxRelation rows.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
massTrackingInfoMassEmailTrackingInfo!Tracking statistics (sent, opened, clicked, replied, bounced, unsubscribed) of the individual emails sent from this mass email.
trackingHistory[EmailTrackingEvent]!Tracking events of the email, newest first: up to the 20 latest opens, clicks and unsubscribes, followed by the send event.
massEmailRelationsMassEmailRelationItemConnection (7 args)Recipients of this mass email in the selected category, with their delivery and engagement state.
hasTrackingEventBoolean!True when a tracking event other than a bounce (such as an open or a click) was recorded for the email.
hasAnyAttachmentBoolean!True when at least one file is attached to the email.
wasBouncedBoolean!True when the email bounced; for a mass email, when any email sent from it bounced. Soft bounces are not counted.
conversationSubjectString (1 args)Subject of the latest sent email in this conversation whose content the caller can read, or a localized "Private content" label when there is none.
isConversationSubjectAvailableBoolean! (1 args)True when the caller can read the content of at least one sent email in this conversation, so conversationSubject returns a real subject.
isContentAvailableBoolean! (1 args)True when the caller can read the content of this email; otherwise subject, body and bodySummary return a localized "Private content" label.
canChangeConversationContentShareModeBoolean! (1 args)True when the caller can change who can read the content of at least one email in this conversation (see updateEmailThreadContentShareModeEmail).
conversationItemsEmailConversationItemConnection (6 args)Paged conversation this email is in, optionally scoped to one mailbox. Deprecated in favour of conversation, which returns the whole thread in one payload.
conversation[EmailConversationItem!]! (2 args)All emails of the conversation this email belongs to in one unpaged list, ordered like conversationItems.
oldestConversationItemEmailEntity (1 args)Earliest sent email of this conversation; empty when this email is the only one in it.
newestReadableConversationItemEmailEntity (1 args)Latest sent email of this conversation whose content the caller can read; empty when this email is the only one in it.
replyBodyString (1 args)HTML body prefilled for a reply: an "On <date> <sender> wrote:" line followed by the quoted original message. Null when the caller cannot read the email content.
forwardBodyString (1 args)HTML body prefilled for forwarding: a forwarded-message header (From, Date, Subject, To, Cc) followed by the quoted original message. Null when the caller cannot read the email content.
isDifferentActorBoolean! (1 args)True when another user created this email and the given mailbox is not a company mailbox the caller can use.
linkedRecords[EmailEntityLinkedRecord!]! (1 args)Records the email is linked to in the given mailbox, such as its sender and recipients. An item without id is an address not matched to any record, and isAvailable is false for a record the caller cannot see.
labelsEmailLabelRelationEntityConnection (5 args)Labels the caller applied to this email's conversation, oldest first. Labels applied by other users and deleted labels are not returned.
EmailConversationItemConnection object pageInfo: PageInfo!, edges: [EmailConversationItemEdge]!, totalCount: Int!

Paginated list of Email records.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[EmailConversationItemEdge]!Contains the nodes in this connection.
totalCountInt!Total number of results.
EmailConversationItemEdge object node: EmailEntity, cursor: String!

A Relay edge containing a EmailConversationItem and its cursor.

FieldTypeDescription
nodeEmailEntityThe item at the end of the edge
cursorString!A cursor for use in pagination
EmailEntityConnection object pageInfo: PageInfo!, edges: [EmailEntityEdge]!, totalCount: Int

Paginated list of Email records.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[EmailEntityEdge]!Contains the nodes in this connection.
totalCountIntTotal number of items in the connection.
EmailEntityEdge object node: EmailEntity, cursor: String!

A Relay edge containing a EmailEntity and its cursor.

FieldTypeDescription
nodeEmailEntityThe item at the end of the edge
cursorString!A cursor for use in pagination
MassEmailRelationItemConnection object pageInfo: PageInfo!, edges: [MassEmailRelationItemEdge]!, totalCount: Int!

Paginated list of MassEmailRelation items.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[MassEmailRelationItemEdge]!Contains the nodes in this connection.
totalCountInt!Total number of results in the view
MassEmailRelationItemEdge object node: MassEmailRelation, cursor: String!

A Relay edge containing a MassEmailRelationItem and its cursor.

FieldTypeDescription
nodeMassEmailRelationThe item at the end of the edge
cursorString!A cursor for use in pagination
ContentShareModeEnumFilterInput input eq: [ContentShareModeEnum!], NOT: ContentShareModeEnumFilterInput

Conditions on an enumeration field. Several conditions given together must all match.

Input fieldTypeDescription
eq[ContentShareModeEnum!]Matches any of the listed values.
NOTContentShareModeEnumFilterInputMatches values that do not meet this condition.
EmailFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field

Filter conditions for Email records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.

Input fieldTypeDescription
OR[EmailFilterInput!]Matches records that meet at least one of the listed filters.
AND[EmailFilterInput!]Matches records that meet all of the listed filters.
NOTEmailFilterInputMatches records that do not meet this filter.
globalSearchQueryStringSearch term matched against the fields that the global search covers for this entity.
idEntityFilterStringFieldUnique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedEntityFilterDateTimeFieldLast modification time.
createdEntityFilterDateTimeFieldCreation time.
bccEntityFilterStringFieldComma-separated list of blind-carbon-copy recipients.
bodyEntityFilterStringFieldHTML body of the email. Returned only to users with read permission on the email content; otherwise empty.
bodySummaryEntityFilterStringFieldPlain-text summary of the email body. Returned only to users with read permission on the email content; otherwise empty.
ccEntityFilterStringFieldComma-separated list of carbon-copy recipients.
companyEmailIdEntityFilterStringFieldId of the company email used as the From / Reply-To. Empty when sent from the user mailbox.
contentShareModeContentShareModeEnumFilterInputHow the email body is shared with non-owners (e.g. Private hides the body, Public makes it visible to anyone with read access on the email envelope).
contentTypeEntityFilterStringFieldMIME content type of the body (e.g. text/html, text/plain).
dateSentEntityFilterDateTimeFieldTimestamp the email was sent. Empty for drafts and scheduled emails not yet sent.
directionEmailDirectionEnumFilterInputDirection of the email (Incoming, Outgoing).
draftParentEmailIdEntityFilterStringFieldId of the original email a draft was started from (reply/forward source), or empty for a standalone draft.
errorCodeEntityFilterNumberFieldNumeric error code recorded when the email failed to send. Zero when no error occurred.
isDraftBooleanTrue when this email is an unsent draft. Drafts have no dateSent/sendAt and are excluded from the sent/scheduled streams.
isTrackedBooleanTrue when delivery tracking is enabled. Tracked emails generate EmailEvent records on open/click.
originalIdEntityFilterStringFieldExternal identifier of the email on the source mailbox (e.g. IMAP Message-ID). Used to deduplicate when re-syncing.
ownerIdEntityFilterStringFieldId of the email owner.
parentEmailIdEntityFilterStringFieldId of the parent (master) email.
sendAtEntityFilterDateTimeFieldTimestamp at which a scheduled email is queued to be sent. Empty for immediately-sent emails.
senderEntityFilterStringFieldSender address as it appeared on the email (free-text "From" header).
senderAccountIdEntityFilterStringFieldId of the matched sender account.
senderClientIdEntityFilterStringFieldId of the matched sender user.
senderContactIdEntityFilterStringFieldId of the matched sender contact.
senderEmailAccountIdEntityFilterStringFieldId of the personal email-integration account that sent this email.
sentimentEmailSentimentEnumFilterInputTone of the email (Negative, Neutral or Positive) as assessed by AI from its content; empty until assessed. Returned only to users with read permission on the email content.
shareModeShareModeEnumFilterInputSharing model for the email envelope (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
subjectEntityFilterStringFieldName of the entity and its default text representation.
tableNameEntityFilterStringFieldDiscriminator identifying the concrete record type — always "email" for Email records. Read-only; useful when consuming polymorphic Message results.
templateIdEntityFilterStringFieldId of the email template.
threadIdEntityFilterStringFieldIdentifier grouping emails belonging to the same conversation thread.
toEntityFilterStringFieldComma-separated list of primary recipients.
typeEmailTypeEnumFilterInputWhether the email is an individual email (Standard) or part of a mass email (Mass).
uidEntityFilterStringFieldIMAP UID of the email on the source mailbox.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
mailboxIds[UUID!]Ids of the mailboxes (company or personal) the email envelope belongs to, aggregated from the active emailMailboxRelation rows.
companyEmailCompanyEmailFilterInputConfigured company email used as the From / Reply-To. Empty when sent from the user mailbox. Matches records where a related record meets these conditions.
draftParentEmailEmailFilterInputThe original email a draft was started from (reply/forward source), or empty for a standalone draft. Matches records where a related record meets these conditions.
ownerClientFilterInputSales user who owns this email. May be empty for unassigned emails. Matches records where a related record meets these conditions.
parentEmailEmailFilterInputFor mass emails: the master email this copy was generated from. Empty for the master and for non-mass emails. Matches records where a related record meets these conditions.
senderAccountAccountFilterInputAccount record matched as the sender, or empty when the sender does not match an existing Account. Matches records where a related record meets these conditions.
senderClientClientFilterInputInternal user matched as the sender, or empty when the sender is external. Matches records where a related record meets these conditions.
senderContactContactFilterInputContact record matched as the sender, or empty when the sender does not match an existing Contact. Matches records where a related record meets these conditions.
templateEmailTemplateFilterInputEmail template used to compose this email, or empty when none was used. Matches records where a related record meets these conditions.
sharingUnitsMessageSharingSalesUnitRelationFilterInputSales units that have been granted shared access to this email envelope. Matches records where a related record meets these conditions.
sharingClientsMessageSharingClientRelationFilterInputUsers that have been granted shared access to this email envelope. Matches records where a related record meets these conditions.
contentSharingUnitsEmailContentSharingSalesUnitRelationFilterInputSales units that have been granted access to the email body when contentShareMode is restricted. Matches records where a related record meets these conditions.
contentSharingClientsEmailContentSharingClientRelationFilterInputUsers that have been granted access to the email body when contentShareMode is restricted. Matches records where a related record meets these conditions.
accountRelationsMessageRelationFilterInputAccounts this email is linked to. Matches records where a related record meets these conditions.
contactRelationsMessageRelationFilterInputContacts this email is linked to. Matches records where a related record meets these conditions.
projectRelationsMessageRelationFilterInputProjects this email is linked to. Matches records where a related record meets these conditions.
customEntityRelationsMessageRelationFilterInputCustom entity records this email is linked to. Matches records where a related record meets these conditions.
leadRelationsMessageRelationFilterInputLeads this email is linked to. Matches records where a related record meets these conditions.
opportunityRelationsMessageRelationFilterInputOpportunities this email is linked to. Matches records where a related record meets these conditions.
quoteRelationsMessageRelationFilterInputQuotes this email is linked to. Matches records where a related record meets these conditions.
tagsTagRelationFilterInputTag labels applied to this email. Visible only to users that can read the email body. Matches records where a related record meets these conditions.
documentsCloudObjectRelationFilterInputAttachments and other documents linked to this email. Matches records where a related record meets these conditions.
EmailOrderByInput input Asc or Desc per field

Sorting of Email records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.

Input fieldTypeDescription
idOrderByEnumUnique identifier of entity.
isDeletedOrderByEnumSpecifies if the entity is considered deleted.
modifiedOrderByEnumLast modification time.
createdOrderByEnumCreation time.
companyEmail[CompanyEmailOrderByNestedInput!]Configured company email used as the From / Reply-To. Empty when sent from the user mailbox. Sorts by fields of the related record, listed in order of priority.
draftParentEmail[EmailOrderByNestedInput!]The original email a draft was started from (reply/forward source), or empty for a standalone draft. Sorts by fields of the related record, listed in order of priority.
owner[ClientOrderByNestedInput!]Sales user who owns this email. May be empty for unassigned emails. Sorts by fields of the related record, listed in order of priority.
parentEmail[EmailOrderByNestedInput!]For mass emails: the master email this copy was generated from. Empty for the master and for non-mass emails. Sorts by fields of the related record, listed in order of priority.
senderAccount[AccountOrderByNestedInput!]Account record matched as the sender, or empty when the sender does not match an existing Account. Sorts by fields of the related record, listed in order of priority.
senderClient[ClientOrderByNestedInput!]Internal user matched as the sender, or empty when the sender is external. Sorts by fields of the related record, listed in order of priority.
senderContact[ContactOrderByNestedInput!]Contact record matched as the sender, or empty when the sender does not match an existing Contact. Sorts by fields of the related record, listed in order of priority.
template[EmailTemplateOrderByNestedInput!]Email template used to compose this email, or empty when none was used. Sorts by fields of the related record, listed in order of priority.
bccOrderByEnumComma-separated list of blind-carbon-copy recipients.
bodySummaryOrderByEnumPlain-text summary of the email body. Returned only to users with read permission on the email content; otherwise empty.
ccOrderByEnumComma-separated list of carbon-copy recipients.
companyEmailIdOrderByEnumId of the company email used as the From / Reply-To. Empty when sent from the user mailbox.
contentShareModeOrderByEnumHow the email body is shared with non-owners (e.g. Private hides the body, Public makes it visible to anyone with read access on the email envelope).
contentTypeOrderByEnumMIME content type of the body (e.g. text/html, text/plain).
dateSentOrderByEnumTimestamp the email was sent. Empty for drafts and scheduled emails not yet sent.
directionOrderByEnumDirection of the email (Incoming, Outgoing).
draftParentEmailIdOrderByEnumId of the original email a draft was started from (reply/forward source), or empty for a standalone draft.
errorCodeOrderByEnumNumeric error code recorded when the email failed to send. Zero when no error occurred.
isDraftOrderByEnumTrue when this email is an unsent draft. Drafts have no dateSent/sendAt and are excluded from the sent/scheduled streams.
isTrackedOrderByEnumTrue when delivery tracking is enabled. Tracked emails generate EmailEvent records on open/click.
ownerIdOrderByEnumId of the email owner.
parentEmailIdOrderByEnumId of the parent (master) email.
sendAtOrderByEnumTimestamp at which a scheduled email is queued to be sent. Empty for immediately-sent emails.
senderOrderByEnumSender address as it appeared on the email (free-text "From" header).
senderAccountIdOrderByEnumId of the matched sender account.
senderClientIdOrderByEnumId of the matched sender user.
senderContactIdOrderByEnumId of the matched sender contact.
sentimentOrderByEnumTone of the email (Negative, Neutral or Positive) as assessed by AI from its content; empty until assessed. Returned only to users with read permission on the email content.
shareModeOrderByEnumSharing model for the email envelope (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
subjectOrderByEnumName of the entity and its default text representation.
templateIdOrderByEnumId of the email template.
toOrderByEnumComma-separated list of primary recipients.
typeOrderByEnumWhether the email is an individual email (Standard) or part of a mass email (Mass).
revisionOrderByEnumRevision when entity was lastly changed.
EmailSentimentEnumFilterInput input eq: [EmailSentimentEnum!], NOT: EmailSentimentEnumFilterInput

Conditions on an enumeration field. Several conditions given together must all match.

Input fieldTypeDescription
eq[EmailSentimentEnum!]Matches any of the listed values.
NOTEmailSentimentEnumFilterInputMatches values that do not meet this condition.
CreateEmailContentSharingClientRelationNoEmailBackrefInput input modified: DateTime, created: DateTime, clientId: ID!, revision: Int

Field values of a new EmailContentSharingClientRelation record, created together with the record it belongs to.

Input fieldTypeDescription
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
clientIdID!Id of the user.
revisionIntRevision when entity was lastly changed.
CreateEmailContentSharingSalesUnitRelationNoEmailBackrefInput input modified: DateTime, created: DateTime, unitId: ID!, revision: Int

Field values of a new EmailContentSharingSalesUnitRelation record, created together with the record it belongs to.

Input fieldTypeDescription
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
unitIdID!Id of the sales unit.
revisionIntRevision when entity was lastly changed.
CreateEmailInput input 50 fields: clientMutationId, modified, created, …

Field values of a new Email record.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
additionalHeadersJSONStringExtra raw email headers preserved from the source message, as a JSON object mapping each header name to a string or a list of strings.
bccStringComma-separated list of blind-carbon-copy recipients.
bodyStringHTML body of the email. Returned only to users with read permission on the email content; otherwise empty.
bodySummaryStringPlain-text summary of the email body. Returned only to users with read permission on the email content; otherwise empty.
ccStringComma-separated list of carbon-copy recipients.
companyEmailIdIDId of the company email used as the From / Reply-To. Empty when sent from the user mailbox.
contentShareModeContentShareModeEnumHow the email body is shared with non-owners (e.g. Private hides the body, Public makes it visible to anyone with read access on the email envelope).
contentTypeStringMIME content type of the body (e.g. text/html, text/plain).
dateSentDateTimeTimestamp the email was sent. Empty for drafts and scheduled emails not yet sent.
directionEmailDirectionEnum!Direction of the email (Incoming, Outgoing).
draftParentEmailIdIDId of the original email a draft was started from (reply/forward source), or empty for a standalone draft.
draftSettingsJSONStringSerialised state of the Create Email dialogue for a draft, as a JSON object, so the composer can be re-opened verbatim. Empty for non-draft emails.
errorCodeIntNumeric error code recorded when the email failed to send. Zero when no error occurred.
isDraftBooleanTrue when this email is an unsent draft. Drafts have no dateSent/sendAt and are excluded from the sent/scheduled streams.
isTrackedBooleanTrue when delivery tracking is enabled. Tracked emails generate EmailEvent records on open/click.
originalIdStringExternal identifier of the email on the source mailbox (e.g. IMAP Message-ID). Used to deduplicate when re-syncing.
ownerIdIDId of the email owner.
parentEmailIdIDId of the parent (master) email.
scheduleSettingsJSONStringScheduling configuration for delayed sending, as a JSON object; next_schedule is a numeric timestamp and recipients/cc/bcc are lists.
sendAtDateTimeTimestamp at which a scheduled email is queued to be sent. Empty for immediately-sent emails.
senderStringSender address as it appeared on the email (free-text "From" header).
senderAccountIdIDId of the matched sender account.
senderClientIdIDId of the matched sender user.
senderContactIdIDId of the matched sender contact.
senderEmailAccountIdIDId of the personal email-integration account that sent this email.
sentimentEmailSentimentEnumTone of the email (Negative, Neutral or Positive) as assessed by AI from its content; empty until assessed. Returned only to users with read permission on the email content.
shareModeShareModeEnumSharing model for the email envelope (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
subjectStringName of the entity and its default text representation.
templateIdIDId of the email template.
threadIdIDIdentifier grouping emails belonging to the same conversation thread.
toStringComma-separated list of primary recipients.
typeEmailTypeEnumWhether the email is an individual email (Standard) or part of a mass email (Mass).
uidString!IMAP UID of the email on the source mailbox.
revisionIntRevision when entity was lastly changed.
sharingUnits[CreateMessageSharingSalesUnitRelationNoMessageBackrefInput!]Sales units that have been granted shared access to this email envelope.
sharingClients[CreateMessageSharingClientRelationNoMessageBackrefInput!]Users that have been granted shared access to this email envelope.
contentSharingUnits[CreateEmailContentSharingSalesUnitRelationNoEmailBackrefInput!]Sales units that have been granted access to the email body when contentShareMode is restricted.
contentSharingClients[CreateEmailContentSharingClientRelationNoEmailBackrefInput!]Users that have been granted access to the email body when contentShareMode is restricted.
accountRelations[CreateMessageRelationNoMessageBackrefInput!]Accounts this email is linked to.
contactRelations[CreateMessageRelationNoMessageBackrefInput!]Contacts this email is linked to.
projectRelations[CreateMessageRelationNoMessageBackrefInput!]Projects this email is linked to.
customEntityRelations[CreateMessageRelationNoMessageBackrefInput!]Custom entity records this email is linked to.
leadRelations[CreateMessageRelationNoMessageBackrefInput!]Leads this email is linked to.
opportunityRelations[CreateMessageRelationNoMessageBackrefInput!]Opportunities this email is linked to.
quoteRelations[CreateMessageRelationNoMessageBackrefInput!]Quotes this email is linked to.
tags[CreateTagRelationNoEmailBackrefInput!]Tag labels applied to this email. Visible only to users that can read the email body.
documents[CreateCloudObjectRelationNoBackrefInput!]Attachments and other documents linked to this email.
CreateOrUpdateEmailInput input 51 fields: clientMutationId, id, modified, …

Field values of an Email record to create, or to update when its id is set.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idIDUnique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
additionalHeadersJSONStringExtra raw email headers preserved from the source message, as a JSON object mapping each header name to a string or a list of strings.
bccStringComma-separated list of blind-carbon-copy recipients.
bodyStringHTML body of the email. Returned only to users with read permission on the email content; otherwise empty.
bodySummaryStringPlain-text summary of the email body. Returned only to users with read permission on the email content; otherwise empty.
ccStringComma-separated list of carbon-copy recipients.
companyEmailIdIDId of the company email used as the From / Reply-To. Empty when sent from the user mailbox.
contentShareModeContentShareModeEnumHow the email body is shared with non-owners (e.g. Private hides the body, Public makes it visible to anyone with read access on the email envelope).
contentTypeStringMIME content type of the body (e.g. text/html, text/plain).
dateSentDateTimeTimestamp the email was sent. Empty for drafts and scheduled emails not yet sent.
directionEmailDirectionEnumDirection of the email (Incoming, Outgoing).
draftParentEmailIdIDId of the original email a draft was started from (reply/forward source), or empty for a standalone draft.
draftSettingsJSONStringSerialised state of the Create Email dialogue for a draft, as a JSON object, so the composer can be re-opened verbatim. Empty for non-draft emails.
errorCodeIntNumeric error code recorded when the email failed to send. Zero when no error occurred.
isDraftBooleanTrue when this email is an unsent draft. Drafts have no dateSent/sendAt and are excluded from the sent/scheduled streams.
isTrackedBooleanTrue when delivery tracking is enabled. Tracked emails generate EmailEvent records on open/click.
originalIdStringExternal identifier of the email on the source mailbox (e.g. IMAP Message-ID). Used to deduplicate when re-syncing.
ownerIdIDId of the email owner.
parentEmailIdIDId of the parent (master) email.
scheduleSettingsJSONStringScheduling configuration for delayed sending, as a JSON object; next_schedule is a numeric timestamp and recipients/cc/bcc are lists.
sendAtDateTimeTimestamp at which a scheduled email is queued to be sent. Empty for immediately-sent emails.
senderStringSender address as it appeared on the email (free-text "From" header).
senderAccountIdIDId of the matched sender account.
senderClientIdIDId of the matched sender user.
senderContactIdIDId of the matched sender contact.
senderEmailAccountIdIDId of the personal email-integration account that sent this email.
sentimentEmailSentimentEnumTone of the email (Negative, Neutral or Positive) as assessed by AI from its content; empty until assessed. Returned only to users with read permission on the email content.
shareModeShareModeEnumSharing model for the email envelope (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
subjectStringName of the entity and its default text representation.
templateIdIDId of the email template.
threadIdIDIdentifier grouping emails belonging to the same conversation thread.
toStringComma-separated list of primary recipients.
typeEmailTypeEnumWhether the email is an individual email (Standard) or part of a mass email (Mass).
uidStringIMAP UID of the email on the source mailbox.
revisionIntRevision when entity was lastly changed.
sharingUnits[CreateMessageSharingSalesUnitRelationNoMessageBackrefInput!]Sales units that have been granted shared access to this email envelope.
sharingClients[CreateMessageSharingClientRelationNoMessageBackrefInput!]Users that have been granted shared access to this email envelope.
contentSharingUnits[CreateEmailContentSharingSalesUnitRelationNoEmailBackrefInput!]Sales units that have been granted access to the email body when contentShareMode is restricted.
contentSharingClients[CreateEmailContentSharingClientRelationNoEmailBackrefInput!]Users that have been granted access to the email body when contentShareMode is restricted.
accountRelations[CreateMessageRelationNoMessageBackrefInput!]Accounts this email is linked to.
contactRelations[CreateMessageRelationNoMessageBackrefInput!]Contacts this email is linked to.
projectRelations[CreateMessageRelationNoMessageBackrefInput!]Projects this email is linked to.
customEntityRelations[CreateMessageRelationNoMessageBackrefInput!]Custom entity records this email is linked to.
leadRelations[CreateMessageRelationNoMessageBackrefInput!]Leads this email is linked to.
opportunityRelations[CreateMessageRelationNoMessageBackrefInput!]Opportunities this email is linked to.
quoteRelations[CreateMessageRelationNoMessageBackrefInput!]Quotes this email is linked to.
tags[CreateTagRelationNoEmailBackrefInput!]Tag labels applied to this email. Visible only to users that can read the email body.
documents[CreateCloudObjectRelationNoBackrefInput!]Attachments and other documents linked to this email.
CreateTagRelationNoEmailBackrefInput input 15 fields: modified, created, accountId, …

Field values of a new TagRelation record, created together with the record it belongs to.

Input fieldTypeDescription
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
accountIdIDId of the linked account.
appointmentIdIDId of the linked appointment.
contactIdIDId of the linked contact.
customEntityIdIDId of the linked custom entity record.
leadIdIDId of the linked lead.
opptyIdIDId of the linked opportunity.
processIdIDId of the linked sales process.
projectIdIDId of the linked project.
quoteIdIDId of the linked quote.
solutionIdIDId of the linked solution.
tagIdID!Id of the tag attached to the record.
taskIdIDId of the linked task.
revisionIntRevision when entity was lastly changed.
DeleteEmailInput input clientMutationId: String, id: ID!

Id of the Email record to delete.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idID!Unique identifier of entity.
ManageContentSharingEmailInput input 5 fields: shareMode, sharingClients, sharingUnits, …

Parameters of the manageContentSharingEmail mutation.

Input fieldTypeDescription
shareModeContentShareModeEnum!Public shows the body to everyone who can see the email; Private only to its owner, its sender and the users the email is shared with; Custom additionally to the users and sales units listed here.
sharingClients[CreateEmailContentSharingClientRelationNoEmailBackrefInput!]Users who can read the body when the mode is Custom. Replaces the current list when sent; an omitted list is left unchanged.
sharingUnits[CreateEmailContentSharingSalesUnitRelationNoEmailBackrefInput!]Sales units whose members can read the body when the mode is Custom. Replaces the current list when sent; an omitted list is left unchanged.
idID!Identifier of the EmailEntity to perform the action on.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
ManageSharingEmailInput input 5 fields: shareMode, sharingClients, sharingUnits, …

Parameters of the manageSharingEmail mutation.

Input fieldTypeDescription
shareModeShareModeEnum!Sharing mode of the email: Standard, Private, AllView or AllEdit.
sharingClients[CreateMessageSharingClientRelationNoMessageBackrefInput!]Users the email is shared with, each with the Watcher or Editor role. Replaces the current list when sent; an omitted list is left unchanged.
sharingUnits[CreateMessageSharingSalesUnitRelationNoMessageBackrefInput!]Sales units the email is shared with, each with the Watcher or Editor role. Replaces the current list when sent; an omitted list is left unchanged.
idID!Identifier of the EmailEntity to perform the action on.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
SendEmailLinkedEntityParams input 6 fields: leadOpptyId, projectId, accountId, …

Record a sent email or text message is linked to; set one of the ids.

Input fieldTypeDescription
leadOpptyIdUUIDLead or opportunity the email is linked to.
projectIdUUIDProject the email is linked to.
accountIdUUIDAccount the email is linked to.
contactIdUUIDContact the email is linked to.
quoteIdUUIDQuote the email is linked to.
customEntityIdCustomEntityIDParamsCustom entity record the email is linked to.
SendEmailRecipientParams input 9 fields: primary, opportunityId, contactId, …

Recipient of an email: the address and the records it represents, which the sent email is linked to and whose data fill its placeholders.

Input fieldTypeDescription
primaryEntityLacotaTypeWhich linked record (e.g. Contact or Account) this recipient primarily represents, used when linking the sent email to a record.
opportunityIdUUIDOpportunity this recipient is associated with, when sending in the context of an opportunity.
contactIdUUIDContact this recipient corresponds to, when known.
accountIdUUIDAccount this recipient corresponds to, when known.
leadIdUUIDLead this recipient is associated with, when sending in the context of a lead.
projectIdUUIDProject this recipient is associated with, when sending in the context of a project.
quoteIdUUIDQuote this recipient is associated with, when sending in the context of a quote.
customEntityIds[CustomEntityIDParams]Custom entity records this recipient is associated with, each given as a CustomEntityID.
addressString!Email address the message is sent to.
UpdateEmailInput input 51 fields: clientMutationId, id, modified, …

Id of an Email record and the field values to change.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idID!Unique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
additionalHeadersJSONStringExtra raw email headers preserved from the source message, as a JSON object mapping each header name to a string or a list of strings.
bccStringComma-separated list of blind-carbon-copy recipients.
bodyStringHTML body of the email. Returned only to users with read permission on the email content; otherwise empty.
bodySummaryStringPlain-text summary of the email body. Returned only to users with read permission on the email content; otherwise empty.
ccStringComma-separated list of carbon-copy recipients.
companyEmailIdIDId of the company email used as the From / Reply-To. Empty when sent from the user mailbox.
contentShareModeContentShareModeEnumHow the email body is shared with non-owners (e.g. Private hides the body, Public makes it visible to anyone with read access on the email envelope).
contentTypeStringMIME content type of the body (e.g. text/html, text/plain).
dateSentDateTimeTimestamp the email was sent. Empty for drafts and scheduled emails not yet sent.
directionEmailDirectionEnumDirection of the email (Incoming, Outgoing).
draftParentEmailIdIDId of the original email a draft was started from (reply/forward source), or empty for a standalone draft.
draftSettingsJSONStringSerialised state of the Create Email dialogue for a draft, as a JSON object, so the composer can be re-opened verbatim. Empty for non-draft emails.
errorCodeIntNumeric error code recorded when the email failed to send. Zero when no error occurred.
isDraftBooleanTrue when this email is an unsent draft. Drafts have no dateSent/sendAt and are excluded from the sent/scheduled streams.
isTrackedBooleanTrue when delivery tracking is enabled. Tracked emails generate EmailEvent records on open/click.
originalIdStringExternal identifier of the email on the source mailbox (e.g. IMAP Message-ID). Used to deduplicate when re-syncing.
ownerIdIDId of the email owner.
parentEmailIdIDId of the parent (master) email.
scheduleSettingsJSONStringScheduling configuration for delayed sending, as a JSON object; next_schedule is a numeric timestamp and recipients/cc/bcc are lists.
sendAtDateTimeTimestamp at which a scheduled email is queued to be sent. Empty for immediately-sent emails.
senderStringSender address as it appeared on the email (free-text "From" header).
senderAccountIdIDId of the matched sender account.
senderClientIdIDId of the matched sender user.
senderContactIdIDId of the matched sender contact.
senderEmailAccountIdIDId of the personal email-integration account that sent this email.
sentimentEmailSentimentEnumTone of the email (Negative, Neutral or Positive) as assessed by AI from its content; empty until assessed. Returned only to users with read permission on the email content.
shareModeShareModeEnumSharing model for the email envelope (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
subjectStringName of the entity and its default text representation.
templateIdIDId of the email template.
threadIdIDIdentifier grouping emails belonging to the same conversation thread.
toStringComma-separated list of primary recipients.
typeEmailTypeEnumWhether the email is an individual email (Standard) or part of a mass email (Mass).
uidStringIMAP UID of the email on the source mailbox.
revisionIntRevision when entity was lastly changed.
sharingUnits[CreateMessageSharingSalesUnitRelationNoMessageBackrefInput!]Sales units that have been granted shared access to this email envelope.
sharingClients[CreateMessageSharingClientRelationNoMessageBackrefInput!]Users that have been granted shared access to this email envelope.
contentSharingUnits[CreateEmailContentSharingSalesUnitRelationNoEmailBackrefInput!]Sales units that have been granted access to the email body when contentShareMode is restricted.
contentSharingClients[CreateEmailContentSharingClientRelationNoEmailBackrefInput!]Users that have been granted access to the email body when contentShareMode is restricted.
accountRelations[CreateMessageRelationNoMessageBackrefInput!]Accounts this email is linked to.
contactRelations[CreateMessageRelationNoMessageBackrefInput!]Contacts this email is linked to.
projectRelations[CreateMessageRelationNoMessageBackrefInput!]Projects this email is linked to.
customEntityRelations[CreateMessageRelationNoMessageBackrefInput!]Custom entity records this email is linked to.
leadRelations[CreateMessageRelationNoMessageBackrefInput!]Leads this email is linked to.
opportunityRelations[CreateMessageRelationNoMessageBackrefInput!]Opportunities this email is linked to.
quoteRelations[CreateMessageRelationNoMessageBackrefInput!]Quotes this email is linked to.
tags[CreateTagRelationNoEmailBackrefInput!]Tag labels applied to this email. Visible only to users that can read the email body.
documents[CreateCloudObjectRelationNoBackrefInput!]Attachments and other documents linked to this email.
UpdateLinkedItemsEmailInput input emailId: UUID!, linkedItems: [SendEmailLinkedEntityParams!]!, mailboxId: UUID, clientMutationId: String

Parameters of the updateLinkedItemsEmail mutation.

Input fieldTypeDescription
emailIdUUID!Id of the e-mail.
linkedItems[SendEmailLinkedEntityParams!]!Records to link: accounts, contacts, leads or opportunities, projects, quotes and custom entities.
mailboxIdUUIDLimits the conversation to the e-mails in this mailbox. Leave empty to update the whole conversation.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
BulkUpdateEmailPayload object result: BulkUpdateResults!

Result of the bulkUpdateEmail mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateEmailPayload object email: EmailEntity, clientMutationId: String

Result of the createEmail mutation.

FieldTypeDescription
emailEmailEntityThe created record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
DeleteEmailPayload object email: EmailEntity, clientMutationId: String

Result of the deleteEmail mutation.

FieldTypeDescription
emailEmailEntityThe deleted record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
ManageContentSharingEmailPayload object result: EmailEntity, clientMutationId: String

Result of the manageContentSharingEmail mutation.

FieldTypeDescription
resultEmailEntityThe email with its updated content sharing.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
ManageSharingEmailPayload object result: EmailEntity, clientMutationId: String

Result of the manageSharingEmail mutation.

FieldTypeDescription
resultEmailEntityThe email with its updated sharing.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
UpdateEmailPayload object email: EmailEntity, clientMutationId: String

Result of the updateEmail mutation.

FieldTypeDescription
emailEmailEntityThe updated record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
UpdateLinkedItemsEmailPayload object result: [EmailLinkedItem!]!, clientMutationId: String

Result of the updateLinkedItemsEmail mutation.

FieldTypeDescription
result[EmailLinkedItem!]!The records now linked to the e-mail.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
ContentShareModeEnum enum Custom, Private, Public

Who can read the body of an email.

ValueDescription
CustomThe owner, users the email is shared with, and the users and units listed in contentSharingClients and contentSharingUnits.
PrivateOnly the owner, the sender and users the email is shared with.
PublicEveryone who can see the email.
EmailConversationItem object 16 fields: id, isContentAvailable, bodySummary, …

One email of a conversation, as listed in the conversation of an email.

FieldTypeDescription
idUUID!Id of the email.
isContentAvailableBoolean!True when the caller can read the content of this email; otherwise bodySummary is empty.
bodySummaryStringPlain-text summary of the email body.
createdDateTimeTime the email was created.
dateSentDateTimeTime the email was sent; empty for drafts and scheduled emails not yet sent.
sendAtDateTimeTime a scheduled email is queued to be sent; empty for emails sent immediately.
hasAnyAttachmentBoolean!True when at least one file is attached to the email.
isDraftBoolean!True when the email is an unsent draft.
draftParentEmailIdUUIDFor a draft reply, the id of the email it replies to; the draft is listed right after that email.
isFavoriteBoolean!True when the caller marked the email as a favorite.
isDifferentActorBoolean!True when another user created this email and the given mailbox is not a company mailbox the caller can use. Always false without mailboxId.
senderStringSender address as it appeared on the email.
senderClientIdUUIDId of the user matched as the sender.
senderAccountEmailConversationSenderAccountAccount matched as the sender; empty when there is none.
senderClientEmailConversationSenderClientUser matched as the sender; empty when there is none.
senderContactEmailConversationSenderContactContact matched as the sender; empty when there is none.
EmailConversationPicture object url: String

Picture of the sender of a conversation item.

FieldTypeDescription
urlStringURL of the picture; empty when there is none.
EmailConversationSenderAccount object name: String, picture: EmailConversationPicture

Account recognized as the sender of a message in an email conversation.

FieldTypeDescription
nameStringName of the account.
pictureEmailConversationPicturePicture of the account.
EmailConversationSenderClient object 7 fields: id, email, firstName, …

User recognized as the sender of a message in an email conversation.

FieldTypeDescription
idUUIDId of the user.
emailStringEmail address of the user.
firstNameStringFirst name of the user.
isDeletedBooleanTrue when the user has been deleted.
lastNameStringLast name of the user.
middleNameStringMiddle name of the user.
pictureUrlStringURL of the profile picture of the user.
EmailConversationSenderContact object 5 fields: firstName, lastName, middleName, …

Contact recognized as the sender of a message in an email conversation.

FieldTypeDescription
firstNameStringFirst name of the contact.
lastNameStringLast name of the contact.
middleNameStringMiddle name of the contact.
titleStringTitle of the contact.
pictureEmailConversationPicturePicture of the contact.
EmailDraftSettings object 24 fields: service, recipients, bcc, …

Saved state of an email draft: recipients, subject, body, attachments, template and sharing, so the draft can be reopened for editing.

FieldTypeDescription
serviceSendEmailService!Email account the email is sent from (SendEmailService).
recipients[SendEmailRecipient]!Primary (To) recipients of the email.
bcc[SendEmailRecipient]!Blind-carbon-copy recipients of the email.
cc[SendEmailRecipient]!Carbon-copy recipients of the email.
replyToStringId of the email this one replies to, which puts it in that conversation.
linkedItems[SendEmailLinkedEntity]!Records chosen to be linked to the email.
isLinkEntitiesEnabledBoolean!True when records could be chosen to be linked to the email while composing it; false, for example, for a mass email sent from the account or contact list.
isHtmlTemplateBoolean!True when the email is composed from an HTML email template.
sendToUnsubscribedBoolean!True to also send the email to recipients who have unsubscribed.
massMailWithLinkedRecordsBoolean!For a mass email: true to also link each individual email to the lead or opportunity given for its recipient.
enrollEmailSequenceIdUUIDEmail sequence the recipients are enrolled in once it is sent.
personifyByPersonificationEntityDataRecords whose data fill the placeholders of the email.
logEmailAsTaskSendEmailFollowupTaskSettingsTask created to log the email once it has been sent.
logFollowUpTaskSendEmailFollowupTaskSettingsFollow-up task created once the email has been sent.
primaryEntityEntityNameEnumType of the records the recipients were picked from, such as Contact or Account, which the email is primarily addressed to; empty when not known.
standardMailAdditionalLinkedItems[SendEmailLinkedEntity]!Records a standard (not mass) email is linked to in addition to its recipients.
massMailBoolean!True when the draft is a mass email.
subjectString!Subject of the draft.
htmlString!HTML body of the draft.
attachments[UUID]!Ids of the files attached to the draft.
emailTemplateIdUUIDEmail template the draft was composed from.
contentShareModeContentShareModeEnumWho can read the content of the email once it is sent.
contentSharingClients[UUID]!Users who can read the content when contentShareMode is Custom.
contentSharingUnits[UUID]!Sales units whose members can read the content when contentShareMode is Custom.
EmailEntityLinkedRecord object 5 fields: id, entity, entityApiName, …

Record an email is linked to in a mailbox, such as its sender or a recipient, or an email address not matched to any record.

FieldTypeDescription
idUUIDId of the linked record; empty for an email address not matched to any record.
entityEntityNameEnumType of the linked record; empty for an unmatched email address.
entityApiNameStringAPI name of the custom entity when the record is a custom entity.
isAvailableBoolean!False when the caller cannot see the linked record.
nameStringName of the linked record, or the email address when it is not matched.
EmailLinkedItem object 7 fields: id, name, entityType, …

Record an email is linked to, such as an account, contact, opportunity or project.

FieldTypeDescription
idID!Id of the linked record.
nameStringName of the linked record; empty when isAvailable is false.
entityTypeEntityNameEnum!Type of the linked record.
entityApiNameStringAPI name of the custom entity when the record is a custom entity.
isAvailableBoolean!False when the caller cannot see the linked record.
isDeletedBoolean!True when the linked record has been deleted.
isEditableBoolean!False for an account or contact linked to a mass email or to one of its individual emails; such a link cannot be removed.
EmailScheduleSettings object 15 fields: service, recipients, bcc, …

Sending settings of an email scheduled to be sent later: sending account, recipients, linked records and the tasks created once it is sent.

FieldTypeDescription
serviceSendEmailService!Email account the email is sent from (SendEmailService).
recipients[SendEmailRecipient]!Primary (To) recipients of the email.
bcc[SendEmailRecipient]!Blind-carbon-copy recipients of the email.
cc[SendEmailRecipient]!Carbon-copy recipients of the email.
replyToStringId of the email this one replies to, which puts it in that conversation.
linkedItems[SendEmailLinkedEntity]!Records chosen to be linked to the email.
isLinkEntitiesEnabledBoolean!True when records could be chosen to be linked to the email while composing it; false, for example, for a mass email sent from the account or contact list.
isHtmlTemplateBoolean!True when the email is composed from an HTML email template.
sendToUnsubscribedBoolean!True to also send the email to recipients who have unsubscribed.
massMailWithLinkedRecordsBoolean!For a mass email: true to also link each individual email to the lead or opportunity given for its recipient.
enrollEmailSequenceIdUUIDEmail sequence the recipients are enrolled in once it is sent.
personifyByPersonificationEntityDataRecords whose data fill the placeholders of the email.
logEmailAsTaskSendEmailFollowupTaskSettingsTask created to log the email once it has been sent.
logFollowUpTaskSendEmailFollowupTaskSettingsFollow-up task created once the email has been sent.
primaryEntityEntityNameEnumType of the records the recipients were picked from, such as Contact or Account, which the email is primarily addressed to; empty when not known.
EmailSentimentEnum enum Negative, Neutral, Positive

Tone of an email as assessed by AI.

ValueDescription
NegativeThe email has a negative tone.
NeutralThe email has a neutral tone.
PositiveThe email has a positive tone.
EmailTrackingEvent object type: EmailTrackingEventTypeEnum!, modified: DateTime!, url: String

Tracking event of a sent email, such as an open, a link click or an unsubscribe.

FieldTypeDescription
typeEmailTrackingEventTypeEnum!Kind of event: sent, opened, clicked or unsubscribed.
modifiedDateTime!Time the event happened.
urlStringLink the recipient clicked, for a click event.
EmailTrackingEventTypeEnum enum Sent, Opened, Clicked, Unsubscribed

Type of an entry in an email's tracking history.

ValueDescription
SentThe email was sent.
OpenedThe recipient opened the email.
ClickedThe recipient clicked a link in the email; url holds the link.
UnsubscribedThe recipient unsubscribed through the email.
FeedTag object id: ID!, name: String!, color: Int!

Tag shown on a feed item, with its name and color.

FieldTypeDescription
idID!Id of the tag.
nameString!Name of the tag.
colorInt!Display color of the tag, encoded as a 24-bit RGB integer: (red << 16) | (green << 8) | blue.
MassEmailDetailGridSortyBy enum Name, Email, Owner, EmailCountInThread

Column by which the recipients of a mass email are sorted.

ValueDescription
NameRecipient name (default).
EmailRecipient email address.
OwnerName of the owner of the recipient account or contact.
EmailCountInThreadNumber of emails in the conversation thread with the recipient.
MassEmailRelation object 14 fields: id, entityType, name, …

Recipient of a mass email: the account or contact the individual email went to, and its delivery and reply state.

FieldTypeDescription
idIDId of the account or contact the email was sent to; empty when the recipient is not linked to a record.
entityTypeEntityNameEnumWhether the recipient record is an Account or a Contact.
nameStringName of the recipient record; empty when isAvailable is false.
pictureUrlStringURL of the picture of the recipient record.
emailIdID!Id of the individual email sent to this recipient.
primaryEmailStringAddress the email was sent to; empty when isAvailable is false.
ownerNameStringName of the owner of the recipient record; empty when isAvailable is false.
isAvailableBoolean!False when the caller cannot see the recipient record.
itemsInConversationCountInt!Number of emails in the conversation of this email.
errorCodeInt!Error code recorded when the email failed to send; zero when it was sent.
wasSentBoolean!True when the email was sent.
wasBouncedBoolean!True when the email bounced.
tags[FeedTag]!Tags of the latest reply received in the conversation.
sentimentEmailSentimentEnumSentiment of the latest reply received in the conversation.
MassEmailRelationCategory enum All, Opened, Clicked, Replied, NotOpened, NotSent, Unsubscribed, Bounced

Group of mass-email recipients to list, by what happened to their copy of the email.

ValueDescription
AllAll recipients.
OpenedRecipients who opened the email (or clicked or unsubscribed) and whose copy did not bounce.
ClickedRecipients who clicked a link in the email and whose copy did not bounce.
RepliedRecipients who replied to the email.
NotOpenedRecipients whose email was sent but not opened.
NotSentRecipients whose email has not been sent yet.
UnsubscribedRecipients who unsubscribed through the email.
BouncedRecipients whose email bounced permanently.
PersonificationEntityData object 8 fields: primary, opportunityId, contactId, …

Records whose data fill the placeholders of an email or text message, such as its contact, account or opportunity.

FieldTypeDescription
primaryEntityLacotaTypeWhich of the given records, such as the Contact or the Account, the message is primarily addressed to.
opportunityIdUUIDOpportunity whose data fills the opportunity placeholders.
contactIdUUIDContact whose data fills the contact placeholders.
accountIdUUIDAccount whose data fills the account placeholders.
leadIdUUIDLead whose data fills the lead placeholders.
projectIdUUIDProject whose data fills the project placeholders.
quoteIdUUIDQuote whose data fills the quote placeholders.
customEntityIds[CustomEntityID]Custom entity records whose data fill the custom entity placeholders, each given as a CustomEntityID.
SendEmailFollowupTaskSettings object 5 fields: taskTypeId, dueDate, status, …

Task created once an email has been sent, either to log the email or to follow it up.

FieldTypeDescription
taskTypeIdUUID!Activity type of the task.
dueDateDateTime!Time the task is created; tasks are created only after the email has been sent.
statusTaskStatusEnum!Status of the created task.
descriptionString!Description of the task.
subjectString!Subject of the task.
SendEmailLinkedEntity object 6 fields: leadOpptyId, projectId, accountId, …

Record a sent email or text message is linked to; set one of the ids.

FieldTypeDescription
leadOpptyIdUUIDLead or opportunity the email is linked to.
projectIdUUIDProject the email is linked to.
accountIdUUIDAccount the email is linked to.
contactIdUUIDContact the email is linked to.
quoteIdUUIDQuote the email is linked to.
customEntityIdCustomEntityIDCustom entity record the email is linked to.
SendEmailRecipient object 9 fields: primary, opportunityId, contactId, …

Recipient of an email: the address and the records it represents, which the sent email is linked to and whose data fill its placeholders.

FieldTypeDescription
primaryEntityLacotaTypeWhich linked record (e.g. Contact or Account) this recipient primarily represents, used when linking the sent email to a record.
opportunityIdUUIDOpportunity this recipient is associated with, when sending in the context of an opportunity.
contactIdUUIDContact this recipient corresponds to, when known.
accountIdUUIDAccount this recipient corresponds to, when known.
leadIdUUIDLead this recipient is associated with, when sending in the context of a lead.
projectIdUUIDProject this recipient is associated with, when sending in the context of a project.
quoteIdUUIDQuote this recipient is associated with, when sending in the context of a quote.
customEntityIds[CustomEntityID]Custom entity records this recipient is associated with, each given as a CustomEntityID.
addressString!Email address the message is sent to.
SendEmailService object personalAccountId: UUID, companyAccountId: UUID, clientPersonalEmailAccountId: UUID

Email account an email is sent from: the sender's own account, a shared company account or, for a mass email, a client personal email account.

FieldTypeDescription
personalAccountIdUUIDIdentifier of the sender's own connected email account to send from. Exactly one of the account fields may be set.
companyAccountIdUUIDIdentifier of a shared company email account to send from. Exactly one of the account fields may be set.
clientPersonalEmailAccountIdUUIDIdentifier of a client personal email account to send from. Valid only for mass email. Exactly one of the account fields may be set.