TanqoryDocs

tanqoryExtMessagingMessages

  • Query
  • Other operations

Campaign messages (not automation steps), newest first; channel narrows, query matches the subject.

Arguments

ArgumentTypeRequiredDefault
channelTanqoryExtMessagingChannelOptional
queryStringOptional

Returns

[TanqoryExtMessagingMessage!]!

FieldTypeDescription
audienceSegmentIdID

A campaign's recipients: the subscribers in this customer segment (gid://tanqory/Segment/…); null = every email subscriber.

audienceSegmentNameString

The segment's name; null with no segment (or one deleted since).

automationTanqoryExtMessagingAutomation

The automation this message is a step of; null for a campaign.

bodyString!

The plain text: an SMS or WhatsApp message, or the text of an email's design (the email itself is rendered from design).

channelTanqoryExtMessagingChannel!
createdAtDateTime!
designJSON

An email's visual design (Apps > Messaging email editor): {version, colors, header, sections, footer}, the shape tanqoryExtMessagingEmailPreview takes. A message written before the editor gets the design its body stands for. Null for SMS, WhatsApp and "Code your own" HTML.

idID!
previewTextString!
scheduledAtDateTime
sendIfString

An automation step sent only when this holds, else skipped: NO_ORDER_SINCE_TRIGGER (no order since the trigger). Null: always.

sendStartedAtDateTime

When the campaign started going out.

sentAtDateTime

When its last recipient was handled.

statusTanqoryExtMessagingMessageStatus!
subjectString!

The subject line (email) or the message name (SMS / WhatsApp).

templateKeyString

The template it started from; null when written from scratch.

unfinishedSections[TanqoryExtMessagingUnfinishedSection!]!

The sections of its email that keep it from being sent, scheduled, tested or turned on (a placeholder, or a link to a store page that was deleted or is not published), in order; empty when it can go, and for SMS, WhatsApp and "Code your own".

updatedAtDateTime!

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 TanqoryExtMessagingMessages {\n  tanqoryExtMessagingMessages {\n    audienceSegmentId\n    audienceSegmentName\n    automation { id }\n    body\n    channel\n    createdAt\n    design\n    id\n    previewText\n    scheduledAt\n  }\n}","variables":{}}'

Built from commit c0b3fb3fdef7 · API version 2026-10