v4
OpenAPI 3.1.02026-07-3163216290.7 KBTransactional emails
Ensure a draft email message
Ensure the transactional email has a draft email message. If a draft already exists it is returned unchanged; otherwise a new empty draft is created (seeded from the most recent published version when present). Use POST /v1/email-messages/{emailMessageId} to edit the draft's content.
post/v1/transactional-emails/{transactionalId}/draft
Response
Draft ready.
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"
}