Email messages
Update an email message
Changed onUpdate fields on an email message (subject, preview text, sender, LMX content). A campaign must be in draft status. You can only edit the draft email message of a transactional email. A workflow must not be sending. Supply expectedRevisionId matching the current contentRevisionId — the server rejects mismatched revisions with 409.
post/v1/email-messages/{emailMessageId}
Request
- Base URLhttps://app.loops.so/api
- AuthHTTP bearer
Request body
Example request
{
"expectedRevisionId": "clrev1s10n2i3d4e5f6g7h8",
"subject": "Spring product updates",
"previewText": "See what's new this season",
"fromName": "Acme Team",
"fromEmail": "hello",
"replyToEmail": "support@company.com",
"emailFormat": "styled",
"lmx": "<Paragraph>Hello, {firstName}!</Paragraph>",
"contactPropertiesFallbacks": {
"firstName": "there"
}
}Response
Email message updated.
Example response
{
"id": "cle5f7g9h1i3j5k7l9m1n3p5",
"campaignId": "clc4m6n8p0q2r4s6t8u0v2x4",
"subject": "Spring product updates",
"previewText": "See what's new this season",
"fromName": "Acme Team",
"fromEmail": "hello",
"replyToEmail": "support@company.com",
"emailFormat": "styled",
"lmx": "<Paragraph>Hello, {firstName}!</Paragraph>",
"contentRevisionId": "clrev1s10n2i3d4e5f6g7h8",
"updatedAt": "2025-06-29T07:47:39.370Z"
}Changes
- info
api operation id
updateEmailMessagewas added
- info