read
theme

Reads one product's custom product page: its status (generating, draft, published, unpublished, failed), the draft modul

Changed on

Reads one product's custom product page: its status (generating, draft, published, unpublished, failed), the draft modules, the version live on the storefront, whether the product changed since the page was made (stale), and whether product pages are switched on for this store. A page is {modules:[...]} in reading order. Module types: highlights {items:[{icon,title,text}]}, story {variant:"alternating"|"stacked", rows:[{title,text,image?}]}, specs {items:[{label,value}]}, size_fit {text}, usage {steps:[...]}, faq {items:[{q,a}]}, gallery {variant:"grid"|"carousel", items:[{image,alt?,caption?}]} (2-12 https images), video {url, caption?} (YouTube, Vimeo or an https .mp4/.webm/.mov file), and the store-filled reviews, guarantees, pairs_with. Images and videos are supplied: a Creative Engine result, a file the merchant shares (stored first with the product page media tool, which returns the public url to use) or the merchant's own image host; story rows take an image too. Every module may carry heading and hidden:true. Plain text only.

post/api/v1/tools/product_page_get

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopestheme:read

Request body

object required
product, string required

The product: its Magistry id, its Shopify id or gid, or its handle.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision