Prerequisites: A permanent inbox provisioned in Settings > Email
inboxes, or an ephemeral inbox created at runtime with
email.create.email
object. Momentic-provisioned inboxes end in @usemomentic.com or
@gomomentic.com.
email.create
Provision a fresh ephemeral inbox at test runtime. The returned inbox is
auto-deleted by Momentic after 24 hours. The lifetime is fixed and not
configurable from test code.
Use this when each run needs a clean inbox (signup flows, magic-link logins,
password resets) and you don’t want to share a permanent address across parallel
runs.
{{ env.INBOX_EMAIL }},
and in a later JavaScript step fetch the verification email:
email.send
Send an email from a Momentic-provisioned address.
email.fetchLatest
Returns the most recent email, polling until one arrives or the timeout elapses.
Throws on timeout.
email.fetchAll
Returns up to limit emails without polling. Throws if the inbox is empty.
Defaults: 15 minute window, 3 emails. Max: 24 hours, 10 emails.
Isolated inboxes
Append a suffix to your provisioned username to create unlimited isolated inboxes. If your username ismomentic, momentic+test@usemomentic.com is a
separate inbox fetched via inbox: "momentic+test".
Use randomized suffixes (e.g. Date.now()) in parallel runs to avoid race
conditions.