Skip to main content

Queries

  • campaign — Fetch a single campaign by its id. Ids from earlier versions of the Redo API are also accepted.
  • campaigns — List campaigns, optionally filtered by name, channel, or when they finished sending.
  • commerceAgentStrategies — Commerce Agent strategies on this store, newest first, optionally filtered by name. At most 100 are returned; narrow with query to reach older ones.
  • commerceAgentStrategy — Look up a Commerce Agent strategy by id. Returns null when this store has no strategy with that id.
  • customerTag — Fetch a single customer tag by its id. Ids from earlier versions of the Redo API are also accepted.
  • customerTags — List customer tags in this store’s catalog, optionally filtered by name, provider, or source.
  • discountCode — Fetch a single discount configuration by its id. Ids from earlier versions of the Redo API are also accepted.
  • discountCodes — List discount configurations, optionally filtered by title or code text, exact checkout code, platform, group type, or kind.
  • emailAddresses — Mailboxes the store can use as a campaign From or Reply-To address.
  • emailTemplate — Fetch a single email template by its id. Ids from earlier versions of the Redo API are also accepted.
  • emailTemplates — List email templates, optionally filtered by name or trigger.
  • emailTemplateVariableCatalog — The static email-template variable grammar for a trigger: template variable names, Url keys, context objects, and table collection paths. Does not include this store’s discounts, saved sections, or product filters. UNKNOWN returns empty lists.
  • marketingAutomation — Fetch a single marketing automation by its id. Ids from earlier versions of the Redo API are also accepted.
  • marketingAutomations — List marketing automations, optionally filtered by name, category, or whether they are running.
  • productFilter — Fetch one product filter saved on this account. An id from another account, or one that does not exist, is null.
  • productFilterCollection — One collection on this account’s connected store. An id that store does not have is null. Uses the account’s saved integration only.
  • productFilterCollections — Collections on this account’s connected store for the given provider. Uses that account’s saved integration only — there is no shop domain or token argument. A provider this account has not connected returns an empty list. At most 100 collections are returned.
  • productFilterMetafields — Product metafield definitions from this account’s Shopify Admin API, using the account’s saved Shopify connection. Accounts without Shopify get an empty list. Definitions are capped at 100. Provider errors do not include the Shopify response.
  • productFilters — Product filters saved on this account.
  • segment — Fetch a single segment by its id. Ids from earlier versions of the Redo API are also accepted.
  • segmentConditionCatalog — The static segment condition grammar: fields, operators, and the JSON Schema for conditions. Does not include this store’s tags, products, or customers.
  • segments — List segments, optionally filtered by name or by how membership is set.
  • segmentTokenFieldOptions — Look up this store’s allowed values for a catalog field (tags, products, countries, custom fields, event names). The catalog is static; these values are not.
  • smsTemplate — Fetch a single SMS template by its id. Ids from earlier versions of the Redo API are also accepted.
  • smsTemplates — List SMS templates, optionally filtered by name or trigger.

Mutations

  • cancelCampaign — Stop an in-progress campaign. Returns null if no campaign with that id is owned by the caller.
  • createCampaign — Create a campaign shell. Email requires subject and previewText. Set the audience and schedule with updateCampaign.
  • createCommerceAgentStrategy — Create a Commerce Agent strategy. Set its id as strategyId when inserting a Start Agent Conversation step.
  • createCustomerTag — Create a customer tag in this store’s Redo catalog. The tag’s source is Redo Marketing.
  • createDiscountCode — Create a discount code on Shopify or BigCommerce. The same input is used for both providers.
  • createDynamicSegment — Create a dynamic segment from a condition tree. Attach it to a campaign with updateCampaign.segmentIds.
  • createEmailTemplate — Create an email template. trigger is required and cannot be UNKNOWN. Optional operations are applied to the default sections.
  • createMarketingAutomation — Create an automation for a public trigger. Returns the new automation. Date and price-drop triggers are not supported.
  • createProductFilter — Save a product filter on this account. The returned id is what an email block stores.
  • createSmsTemplate — Create an SMS template. trigger is required and cannot be UNKNOWN.
  • deleteCampaign — Delete a campaign that has not started sending. Returns true if an owned campaign was deleted, false if none matched.
  • deleteDiscountCode — Delete a discount code. Returns true if an owned code was deleted, false if none matched. On Shopify the platform discount is deleted too; on BigCommerce only the Redo record is removed.
  • deleteEmailTemplate — Delete an email template. Returns true if an owned template was deleted, false if none matched.
  • deleteMarketingAutomation — Delete an automation and stop its in-flight runs. Returns true if an owned automation was deleted, false if none matched.
  • deleteProductFilter — Delete a product filter on this account. Returns false when the id is missing or belongs to another account. Interactive cart sections on this account that stored the id have that reference cleared.
  • deleteSegment — Delete a segment. Returns true if an owned segment was deleted, false if none matched.
  • deleteSmsTemplate — Delete an SMS template. Returns true if an owned template was deleted, false if none matched.
  • updateCampaign — Update a campaign. Returns null if no campaign with that id is owned by the caller.
  • updateCommerceAgentStrategy — Update a Commerce Agent strategy. Returns null when this store has no strategy with that id.
  • updateCustomerTag — Rename a customer tag. Returns null if no owned tag matches the id.
  • updateDiscountCode — Update a discount code. Returns null if no code with that id is owned by the caller.
  • updateDynamicSegment — Update a dynamic segment. Returns null if no owned segment matches the id.
  • updateEmailTemplate — Update template metadata and/or apply section operations. Returns null if no owned template matches the id. Pass input, operations, or both.
  • updateMarketingAutomation — Update automation metadata and/or apply step operations. Returns null if no owned automation matches the id. Pass input, operations, or both.
  • updateProductFilter — Replace a product filter on this account. An id from another account, or one that does not exist, is null.
  • updateSmsTemplate — Update an SMS template. Returns null if no owned template matches the id.
  • uploadMarketingImage — Upload an image for an SMS or email template. Redo checks the real file type, then resizes and compresses it with the same settings as the template editors, and returns a hosted URL. Each upload costs query points by size and also counts against a per-account upload quota; over the quota returns THROTTLED.

Objects

Interfaces

  • MessageAnalytics — Counts and rates for a marketing send over a period. Rates are fractions rather than percentages, and are null when the denominator is zero. Counts cover events that happened inside the range, which for an automation may include engagement with messages sent before it — so a rate can exceed 1.
  • ProductFilter — A named product recommendation rule saved on this account. id is the 24-character hex an email block stores as recommendedProductFilterId or productFilterId. It is not a catalog product id.

Input objects

Enums