Skip to content

Email Editor

Use these tools to create and shape the emails used in campaigns and notifications. They provide access to the content, design, personalization, and preparation of an email before it is delivered to recipients.

For example, you can add and arrange content blocks, apply styles and templates, insert images or placeholders, preview personalized content, run quality checks, send tests, and publish the finished email body. Sending the email or adding it to an automation remains a separate workflow, and further editing capabilities may be added over time.

Add Email Button

Tool name: add-email-editor-button

Adds a button block with its label (markup) and link to an email column. Copies the nearest button’s style, not its label or inline markup, and returns the new UUID. Revision-bound, atomic edit; drafts only; publishing is publish-newsletter-email-content.

Input schema

editorUrlstring, [ 12 .. 500 ] charactersrequired

Editor URL of the email, as the read returned it

contentRevisionstring, [ 7 .. 100 ] charactersrequired

The contentRevision of the read this change is based on

columnUuidstringrequired

The uuid of the column the block goes into

labelnull or string, <= 2000 characters

The visible text of the button, as markup

Default:null
hrefnull or string, <= 2000 characters

Where the button leads

Default:null
positionnull or integer, >= 0

Where it goes inside the column, counted from zero; omit to append

Default:null
accountIdnull or integer, >= 1

User ID of the account; omit for the account the access token works in

Default:null
Input example
{ "editorUrl": "stringstring", "contentRevision": "strings", "columnUuid": "string", "label": null, "href": null, "position": null, "accountId": null }

Output schema

One of:
operationstringrequired

"replaced": the stored document is a new one; "unchanged": nothing was persisted.

Enum:"replaced""unchanged"
previousContentStatusstringrequired
Enum:"draft""published""unpublished_changes"
contentStatusstringrequired
Enum:"draft""published""unpublished_changes"
emailIdintegerrequired
contentRevisionstringrequired
warningsArray of stringsrequired
editorUrlstringrequired
createdArray of objectsrequired

What this write created, with uuids: after "addRow" the row and its columns, after "addModule" the block, plus the contentRevision the next write needs. Empty when nothing was created.

nextActionstringrequired

The content action still open: "review_and_publish_content" while the stored draft is not the dispatch content.

Enum:"review_and_publish_content""none"
Output example
{ "operation": "replaced", "previousContentStatus": "draft", "contentStatus": "draft", "emailId": 0, "contentRevision": "string", "warnings": [ "string" ], "editorUrl": "string", "created": [ { "operation": 0, "type": "row", "uuid": "string", "kind": "string", "columns": [ "string" ] } ], "nextAction": "review_and_publish_content" }