Skip to content
Install on Shopify

Webhooks

When a merchant installs the ShopMD app, ShopMD subscribes to a small set of Shopify webhooks for that store. They’re how files stay in step with the store without anyone pressing a button. There’s nothing for you to configure: the subscriptions are made at install time and end when the app is removed.

ShopMD doesn’t send webhooks of its own.

Shopify event What ShopMD does What the merchant sees
products/update Refreshes catalog.md A catalog.md draft to approve
products/delete Refreshes catalog.md A catalog.md draft to approve
collections/update Refreshes catalog.md A catalog.md draft to approve
shop/update Refreshes store.md A store.md draft to approve
themes/publish Refreshes design.md, comparing the new design with the current one, and rebuilds shop.md A design.md draft if the design changed enough, and a shop.md draft
app/uninstalled Stops reading the store and disconnects it The MCP server’s signed-in tools stop answering for that store, over OAuth or API token

A store’s first version of a file goes live straight away. These refreshes replace a file that’s already published, so each one waits as a draft beside it until the merchant approves or discards it. Agents keep reading the published version in the meantime. See Keep your files fresh.

Product, collection and store-setting events for the same file within about five minutes share one refresh. An import of 300 products in a few minutes leads to one catalog.md refresh, not 300.

On themes/publish, ShopMD scores how far the new design moved from the current design.md. If almost nothing changed, it keeps the current file and doesn’t offer a draft. See design.md.

  • shop.md isn’t rebuilt by product or setting changes directly. It’s rebuilt when the merchant approves a refreshed store.md, brand.md, policies.md or catalog.md, on a theme publish, and every night.
  • brand.md, policies.md and agents.md have no webhook trigger. They change when the merchant regenerates them.
  • Product and collection files change only when the merchant presses Write the files. See Write product and collection files with templates.

Every webhook is verified as coming from Shopify before ShopMD acts on it. An unverified request is rejected and changes nothing. Refreshes run in the background, so a slow refresh never delays Shopify’s delivery.