Skip to main content
API resource reference for Email, part of the Notification service. To create or change one, see Changing resources; to inspect, see Reading resources.
This resource is part of the v1alpha1 API and is subject to change. Fields and behavior may change in future releases.

Identity

Groupnotification.miloapis.com
Versionv1alpha1
KindEmail
ScopeProject

Overview

An Email represents a concrete message that Datum Cloud should send to a recipient. It references an EmailTemplate to render, names the recipient (either a User resource or a literal address), and supplies the variables needed to fill in the template. Use it to trigger a one-off notification e-mail within a Project; the platform renders the template, resolves the recipient, and delivers the message, recording the outcome in the resource status.

Spec fields

FieldTypeRequiredDescription
spec.templateRefObjectYesReferences the EmailTemplate that should be rendered.
spec.templateRef.namestringYesName of the referenced EmailTemplate.
spec.recipientObjectYesThe recipient of the e-mail. Provide exactly one of userRef or emailAddress.
spec.recipient.userRefObjectNoReferences the User resource that will receive the message. Mutually exclusive with emailAddress.
spec.recipient.userRef.namestringNoName of the User resource that will receive the e-mail. Required when userRef is set.
spec.recipient.emailAddressstringNoLiteral e-mail address for the recipient instead of a User reference. Mutually exclusive with userRef.
spec.variables[]ObjectNoName/value pairs substituted into the template. Each entry requires name (as declared in the template) and value.
spec.prioritystringNoInfluences the order in which pending e-mails are processed. One of low, normal, high.
spec.cc[]stringNoAdditional addresses that receive a carbon copy. Maximum 10 addresses.
spec.bcc[]stringNoAddresses that receive a blind-carbon copy. Maximum 10 addresses.

Status fields (read-only)

FieldTypeDescription
status.conditions[]ObjectLatest observations of the e-mail’s state; the standard Delivered condition tracks delivery.
status.emailAddressstringThe final recipient address used for delivery, after resolving any referenced User.
status.subjectstringThe subject line used for the e-mail.
status.htmlBodystringThe rendered HTML content of the e-mail.
status.textBodystringThe rendered plain-text content of the e-mail.
status.providerIDstringIdentifier returned by the underlying e-mail provider when the message is accepted for delivery, used to track delivery status.

Usage

apiVersion: notification.miloapis.com/v1alpha1
kind: Email
metadata:
  name: welcome-message
spec:
  templateRef:
    name: welcome-template
  recipient:
    emailAddress: person@example.com
  variables:
    - name: firstName
      value: Alex
  priority: normal
datumctl apply -f email.yaml --project my-project
datumctl get emails --project my-project
datumctl describe emails welcome-message --project my-project
Run datumctl explain emails --recursive to see the full, live field tree for this resource.
Last modified on July 2, 2026