TanqoryDocs

tanqoryExtMessagingEmailPreview

  • Query
  • Other operations

An email design rendered as it would be sent (the email editor's live preview): the store's branding, products, collections and footer. Stores nothing. INVALID (the design's problems).

Arguments

ArgumentTypeRequiredDefault
designJSON!Required
previewTextStringOptional
subjectStringOptional

Returns

TanqoryExtMessagingEmailPreview!

FieldTypeDescription
htmlString

The whole email as it would be sent; null with userErrors.

sections[TanqoryExtMessagingSectionPreview!]!

Header, content sections in order, footer.

unfinished[TanqoryExtMessagingUnfinishedSection!]!

The sections that keep this design from being sent, in order (placeholders and broken store links).

userErrors[TanqoryExtMessagingUserError!]!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query TanqoryExtMessagingEmailPreview($design: JSON!) {\n  tanqoryExtMessagingEmailPreview(design: $design) {\n    html\n    sections { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"design":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10