v4
OpenAPI 3.1.02026-07-3163216290.7 KBTransactional emails
Create a transactional email
Create a new transactional email. An empty draft email message is created automatically and its draftEmailMessageId is returned. Use the POST /v1/email-messages/{emailMessageId} endpoint along with the returned draftEmailMessageContentRevisionId to set subject, sender, preview text, and LMX content, then call POST /v1/transactional-emails/{transactionalId}/publish to publish the draft.
post/v1/transactional-emails
Request body
Example request
{
"name": "Welcome email",
"transactionalGroupId": "clg7n5p3q1r9s7t5u3v1w9y7"
}Response
Transactional email created.
Example response
{
"id": "cll42l54f20i1la0lfooe3z12",
"name": "Sign up confirmation",
"draftEmailMessageId": "cle5f7g9h1i3j5k7l9m1n3p5",
"publishedEmailMessageId": "cle5f7g9h1i3j5k7l9m1n3p5",
"transactionalGroupId": "clg7n5p3q1r9s7t5u3v1w9y7",
"createdAt": "2025-06-29T07:47:39.370Z",
"updatedAt": "2025-06-29T07:47:39.370Z",
"dataVariables": [
"confirmationUrl"
],
"draftEmailMessageContentRevisionId": "clrev1s10n2i3d4e5f6g7h8"
}