Create a transactional email
Create a new transactional email and its draft email message, ready for editing, previewing, and publishing through the Loops API.
draftEmailMessageId and draftEmailMessageContentRevisionId when calling the Update email message endpoint to set subject, sender, preview text, and LMX content
Call Publish transactional email draft to publish.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Response
Transactional email created.
The ID of the transactional email.
The name of the transactional email.
The ID of the draft email message.
The contentRevisionId of the draft email message. Pass this as expectedRevisionId on your first update via POST /v1/email-messages/{emailMessageId}.
The ID of the published email message. null if there is no published version.
ISO 8601 timestamp for when the transactional email was created.
ISO 8601 timestamp for when the transactional email was last updated.
Data variable names used by the published email. Empty for unpublished transactional emails.
The ID of the group this transactional email belongs to. Returned when creating a transactional email.
Related topics
Transactional email API examplesAuth.jsTransactional emailAPI IntroductionSend emails from Bolt.new
