EmailTemplate
Email template for automated messaging and communication campaigns.
Defines the structure, content, and configuration for email messages including localized content, recipients, attachments, and dynamic data integration. Used for transactional emails, marketing campaigns, and system notifications.
type EmailTemplate implements IBaseTemplate {
id: String!
contents: [LocalizedTemplateContent!]
names(
language: String
): [LocalizedString!]!
content: String
customQuery: String
queryVariables: String
createdAt: DateTime!
lastModifiedAt: DateTime!
createdBy: Int
lastModifiedBy: Int
subjects(
language: String
): [LocalizedString!]!
from: EmailSender!
tos: [EmailContact!]
ccs: [EmailContact!]
bccs: [EmailContact!]
attachments: [DocumentTemplate!]
}
Fields
EmailTemplate.id ● String! non-null scalar
Unique identifier for the message template.
Used to reference and manage specific templates throughout the messaging system for emails, documents, and notifications.
EmailTemplate.contents ● [LocalizedTemplateContent!] list object
Handlebars template content for each supported language.
The actual template markup using Handlebars syntax for dynamic content generation, stored per language for localization support.
EmailTemplate.names ● [LocalizedString!]! non-null object
Localized template names for different languages.
Human-readable names for the template in various languages, used for template identification and management in multilingual environments.
EmailTemplate.names.language ● String scalar
Language code filter for localized names.
ISO 639-1 language code (e.g., 'en', 'nl', 'de') to filter the returned names to a specific language. When omitted, returns names for all available languages.