Shopemail
v0.2.0Design, preview, and export Shopify notification emails in your authorized Shopemail theme.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
open_editor Open the Shopemail editor
Open the interactive email editor with the exact working theme, notification, blocks, fields, preview and downloads. All actions retain the connection permissions.
| Parameter | Type | Description |
|---|---|---|
key | string | |
theme_id | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
get_context Identify the current theme and permissions
Return the authorized workspace, current theme, accessible themes and granted capabilities. Theme IDs identify the exact target of edits.
list_theme_examples Browse public theme examples
Browse and search public Shopemail theme examples that can be copied into an authorized workspace.
| Parameter | Type | Description |
|---|---|---|
category | string | |
limit | integer | |
offset | integer | |
query | string |
get_theme_example Inspect a public theme example
Read a public example description, structure and appearance before copying it.
| Parameter | Type | Description |
|---|---|---|
example_id * | string |
list_themes List accessible owned themes
List owned theme names and immutable IDs within the granted scope. A single-theme grant returns only that theme.
| Parameter | Type | Description |
|---|---|---|
include_archived | boolean |
get_theme Inspect an owned theme
Read the specified authorized theme and its authored appearance, without preview sample values or unrelated themes.
| Parameter | Type | Description |
|---|---|---|
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
list_emails List theme notification emails
List notification keys and customization summaries for the specified authorized theme.
| Parameter | Type | Description |
|---|---|---|
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
read_email Read an email design
Read authored copy, styles, blocks and rules for the specified theme and notification. Preview sample values are excluded.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
list_blocks List email blocks and insertion anchors
List native and custom block IDs, order, locks, visibility and valid insertion anchors for the specified email.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
get_email_options Inspect eligible email options
Read available copy fields, design choices and data-field eligibility for this email. This tool does not execute edits.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
list_rule_recipes List reusable rule recipes
Read the workspace saved condition library. Requires explicit workspace editor consent; contains no preview sample data.
get_shopify_data_catalog Read discovered Shopify custom-data definitions
Read schema-only snapshots last discovered in the connected store, with resource, type, binding eligibility and refresh time. Requires explicit workspace access. Does not fetch live values or expose saved samples.
| Parameter | Type | Description |
|---|---|---|
resource |
list_data_fields List eligible email data fields
List standard notification fields and registered metafield definitions for content or rules. Workspace grants also include Shopify definitions from the latest authorized discovery snapshot. Definition discovery does not prove a value exists when a notification sends.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
purpose | ||
scope |
get_editor_formats Read an editor content format
Read the actual checked JSON format for variable content, conditions, field references or custom HTML/Liquid.
| Parameter | Type | Description |
|---|---|---|
format * |
get_block_formats Read supported block formats
Read supported block types, properties, defaults and limits before constructing a block.
| Parameter | Type | Description |
|---|---|---|
type | string |
list_images List available email images
List public library images and authorized uploaded images usable in email blocks. Narrow grants reveal only uploads referenced by their theme.
| Parameter | Type | Description |
|---|---|---|
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
get_preview_data Read saved preview sample data
Read saved sample data for the authorized workspace or a theme notification. Requires explicitly granted workspace editor access.
| Parameter | Type | Description |
|---|---|---|
key | string | |
theme_id | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
preview_email Preview a notification email
Render the actual current email as preview HTML. Uses fictional library samples unless explicit data is supplied or authorized saved samples are requested.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
data | object | |
use_saved_samples | boolean |
inspect_email Inspect compiled email HTML and Liquid
Compile and inspect the current authored email without saving a change. Return structural checks and a bounded source excerpt.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
max_characters | integer |
export_email Download one notification template
Create an actual short-lived download of the specified current notification as Shopify Liquid or preview HTML. This does not install or send it.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
format |
export_theme Download a complete email theme
Create an actual ZIP download containing the current theme notification templates, required image copies and installation instructions.
| Parameter | Type | Description |
|---|---|---|
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
include_images | boolean |
get_change_history Review theme edit history
Read bounded, scoped change summaries for the specified theme. Unrelated theme content and history are excluded.
| Parameter | Type | Description |
|---|---|---|
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
limit | integer |
create_custom_theme Create a custom email theme
Create a new theme with the header and essential native Shopify blocks for each notification. New themes inherit the store logo unless inherit_store_logo is false. Optional blocks can be added back. Use list_blocks to review the notification checklist.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
name * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
inherit_store_logo | boolean |
copy_theme Copy a theme
Create an owned copy of a public theme example or an existing theme in the authorized workspace, with the supplied name.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
name * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
source_id * | string | library stem (20: 01-porcelain, 02-paper, 03-studio, …) or an owned theme id |
source_kind * | string | |
carry_from | string | |
if_exists | string | |
include_starters | boolean | |
inherit_store_logo | boolean |
rename_theme Rename a theme
Rename the specified owned theme. Its immutable ID and authored content remain the same.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
name * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
archive_theme Archive a theme
Archive the specified theme without permanently deleting it. It can be restored.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
restore_theme Restore a theme
Restore an archived theme in the authorized scope.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_workspace_active_theme Set the workspace active theme
Set which owned theme is active in the authorized workspace.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_brand_details Update shared brand details
Update one validated brand profile field shared by the workspace themes.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
value * | string | null |
copy_brand_settings Copy brand settings between themes
Copy supported branding from one authorized owned theme to another authorized theme.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
from_theme_id * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_email_item_layout Set email product data and layout
Configure a notification’s checked order-item cards, static products, scalar product title and additional detail bindings with missing-value fallbacks, columns and mobile stacking. Omit binding to restore the original theme layout. Does not change Shopify or confirm installation.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
binding | object |
set_store_brand_logo Set the store default email logo
Set a validated hosted logo inherited by new themes and existing themes explicitly using the store default. Custom logos and original theme headers are preserved. Null removes the default.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
url * | string | null |
use_store_brand_logo Use the store default logo for a theme
Link this theme to the store default logo. Future store-logo changes update its email headers. Existing custom logo is replaced; other theme styling is retained.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_brand_logo Set a theme email logo
Use an uploaded Shopemail image or an image in the merchant-confirmed Shopify Files folder as the theme’s email header logo. Pass null to restore the theme header.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
url * | string | null |
set_theme_font Set a theme custom font
Use a hosted WOFF2 file in the confirmed Shopify Files folder across this theme. Email clients can use the existing font stacks as fallbacks. Pass null to remove the custom font.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
url * | string | null |
set_checklist_item Set an email checklist requirement
Mark a block as required for one email, or remove an additional requirement. Built-in essential requirements are retained. Use list_blocks to see missing, hidden and conditional checklist items.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
required * | boolean | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_brand_color Set a theme brand color
Set a named light or dark color role in the specified theme.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
hex * | string | null | |
mode * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
role * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_brand_typography Set theme typography
Set a supported typography value in the specified theme.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
value * | string | number | boolean | null |
set_brand_shape Set a theme shape value
Set a supported shape value such as corner radius in the specified theme.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
value * | string | null |
set_theme_token Set a theme design token
Set a supported, validated light appearance token in the specified theme.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
value * | string | number | boolean | null |
set_dark_theme_token Set a dark appearance token
Set a supported, validated dark appearance token in the specified theme.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
value * | string | number | boolean | null |
set_theme_layout Set a theme layout option
Set a layout option supported by this theme structure.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
value * | string | number | boolean | null |
set_theme_setting Set a theme email setting
Update one supported email setting in the specified theme.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
value * | string | null |
set_section_visibility Set section visibility
Set the supported visibility state of a native email section.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
sid * | string | |
state * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_section_lock Set an email section lock
Lock or unlock a native section before a supported removal or visibility change.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
locked * | boolean | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
sid * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
remove_section Remove a native email section
Remove an unlocked native section from an email. Validation reports essential information affected by the change.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
sid * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
restore_section Restore a native email section
Restore a previously removed native section in an email.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
sid * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_email_copy Set literal email copy
Update a supported literal-copy field in the specified notification and language. Structured variables use set_email_content.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
field * | string | |
key * | string | |
lang * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
value * | string | null |
set_email_content Set email copy with data fields
Set a supported copy field using the checked content/1 text-and-variable format.
| Parameter | Type | Description |
|---|---|---|
content * | object | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
field * | string | |
key * | string | |
lang * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_email_style Set an email appearance override
Set one supported appearance override for the specified notification email.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
field * | string | |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
value * | string | number | boolean | null |
set_email_brand_defaults Use theme brand defaults for an email
Enable or disable use of the theme brand defaults for the specified notification.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
on * | boolean | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_block_style Set native block styling
Set a supported style property on a native block in the specified email.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
field * | string | |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
sid * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
value * | string | number | boolean | null |
set_native_block_visibility Set native block visibility
Show or hide a native email block where its locks and validation allow it.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
hidden * | boolean | |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
sid * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_section_rule Set a native section condition
Set a checked rule/1 condition controlling a native section in the specified email.
remove_section_rule Remove a native section condition
Remove a condition from the specified native email section.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
sid * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_block_rule Set a custom block condition
Set a checked rule/1 condition controlling the specified custom block.
remove_block_rule Remove a custom block condition
Remove the condition on the specified custom block.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
set_block_content Bind data fields in block content
Set one supported custom block field using checked content/1 text and variable parts.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
content * | object | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
field * | string | |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
remove_block_content Remove a block data binding
Remove the structured binding from one custom block field, returning to its literal content.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
field * | string | |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
add_data_field Register a shared data field
Register a labeled scalar order, product or variant metafield definition for reuse in email content and rules. This does not verify its existence in Shopify or fetch live values.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
field * | object | |
label * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
remove_data_field Remove a shared data field definition
Remove a registered metafield from the workspace field catalog. This does not delete data in Shopify.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
id * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
save_rule_recipe Save a reusable rule recipe
Save a checked condition by name for reuse across workspace emails. Saving the same name updates the recipe; applied block rules keep independent copies.
remove_rule_recipe Remove a reusable rule recipe
Remove a saved condition recipe without changing rules already applied to email blocks.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
id * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
set_preview_data Set email preview sample data
Set validated JSON preview data for the workspace or for one theme notification. These values are samples, not live Shopify data.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
value * | object | |
key | string | |
theme_id | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
reorder_blocks Reorder email blocks
Save the complete ordered list of native and custom block IDs in an email. A changed block list is refused.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
order * | array | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
add_block Add an email block
Add one supported block at a valid insertion anchor. Includes text, images, buttons, reusable content blocks and validated custom HTML/Liquid.
| Parameter | Type | Description |
|---|---|---|
after * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
type * | string | |
before_id | string | |
props | object |
update_block Update an email block field
Update one validated property of a custom block, including content, layout or visibility.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
field * | string | |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
value * | string | number | boolean | null | |
local_copy | boolean | For a reusable content block, atomically make a local copy before changing this field. Shared workspace values remain separate. |
set_custom_code Set custom email HTML and Liquid
Replace a custom-code block with validated email HTML, supported inline CSS and eligible Shopify Liquid. Scripts and unsupported code are rejected.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
html * | string | |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
move_block Move an email block
Move a custom block to a supported native anchor or before another custom block.
| Parameter | Type | Description |
|---|---|---|
after * | string | |
block_id * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
before_id | string |
duplicate_block Duplicate an email block
Create an independent copy of one custom block inside its email.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
remove_block Remove a custom email block
Remove the specified custom block in one undoable change.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
import_email_content Import editable content from Shopify email code
Take pasted Shopify notification HTML or Liquid and extract literal text, approved images, and store links as editable blocks. Dry-run returns the selected blocks and skipped-content counts. Existing blocks and native Shopify logic stay in place. This action does not fetch or install a Shopify template.
| Parameter | Type | Description |
|---|---|---|
after * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
key * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
source * | string | |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
studio_snapshot Load the Studio workspace
Load the selected theme and its authored emails for the Studio interface.
| Parameter | Type | Description |
|---|---|---|
theme_id | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
studio_save Save Studio edits
Save one checked group of changes made through the Studio interface.
| Parameter | Type | Description |
|---|---|---|
commands * | array | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
select_theme Choose the current working theme
Choose an accessible owned theme as this connection’s current context. Subsequent edit calls still name its immutable theme ID explicitly.
| Parameter | Type | Description |
|---|---|---|
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
add_detail_field Add a data field beside email details
Add a text block containing a label and a checked field binding at the chosen insertion anchor, atomically in one undoable change.
| Parameter | Type | Description |
|---|---|---|
after * | string | |
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
fallback * | string | |
field * | ||
key * | string | |
label * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
before_id | string | null |
undo_edit Undo an authorized theme change
Undo this connection’s recent change group in the specified theme. Dependent groups and changes made by other connections are refused.
| Parameter | Type | Description |
|---|---|---|
dry_run * | boolean | True validates without saving. False validates and saves one undoable change. |
expected_seq * | integer | Latest workspace sequence returned by a read. A stale sequence is refused. |
group_id * | string | |
request_id * | string | Unique ID for this change. Reuse it only when retrying the identical operation. |
theme_id * | string | An owned theme ID returned by list_themes, copy_theme or create_custom_theme. |
with_dependents | boolean |
upload_image Upload a public email image
Upload a JPEG or PNG image to Shopemail’s immutable public image hosting for use in email blocks. Maximum 3 MB and 1600 pixels per side. Requires workspace editor access.
| Parameter | Type | Description |
|---|---|---|
content_type * | ||
data * | string | Standard base64-encoded bitmap bytes, without a data-URL prefix. |
name * | string |