---
title: Blog
description: Subscribe to field-level changes on the Blog GraphQL Admin API object.
api_version: unstable
source_url:
  html: 'https://shopify.dev/docs/api/events/latest/blog'
  md: 'https://shopify.dev/docs/api/events/latest/blog.md'
api_name: events
---

# Blog

**Requires one of the `read_content` or `read_online_store_pages` access scopes.:**

Subscribe to field-level changes on the [`Blog`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog) GraphQL Admin API object. You can subscribe to create, delete, and update events, as well as changes to specific fields.

Each [topic](https://shopify.dev/docs/api/events/latest#configuration) corresponds to a commerce resource that can exist independently within its domain. Child entities that depend on a parent within the same domain don't have their own topic. Instead, changes to child entities trigger a delivery on the parent topic. Calculated fields, derived fields, auto-updated timestamps, and cross-domain fields aren't available as triggers.

## shopify.app.toml

```toml
[events]
api_version = "unstable"


[[events.subscription]]
handle = "my_blog_event"


topic = "Blog"
actions = ["update"]
triggers = ["blog.commentPolicy"]


uri = "https://your-app.com/events"


query = """
query blog_event_payload($blogId: ID!) {
  blog(id: $blogId) {
    id
    title
    handle
    commentPolicy
  }
}
"""
```

***

## Supported triggers

Field-level [triggers](https://shopify.dev/docs/api/events/latest#configuration) for `Blog` subscriptions.

All triggers require one of the `read_content` or `read_online_store_pages` access scopes. Those triggers that require additional scopes are documented where relevant. Deprecated triggers are listed last.

Subscriptions can include multiple triggers. Use the `shopify-webhook-id` header for deduplication when handling duplicate deliveries.

Custom queries aren't limited to [`Blog`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog). They can query the full GraphQL Admin API.

### blog​.\*

Fires when events involve the [`Blog`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog) object.

The `"create"` and `"delete"` actions are only relevant within the context of this parent topic. Use `fields_changed` to follow or replicate impacted data after a delete event. Define a custom query to retrieve specific fields from create events.

`blog.*` is a parent trigger. Subscribing with the `"update"` action receives events for all supported triggers under `blog`, including nested triggers. Use a more specific trigger to limit events to the fields you need.

**Variables:** `blogId`

### blog​.commentPolicy

Fires when the [`commentPolicy`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog#field-Blog.fields.commentPolicy) field on the [`Blog`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

Indicates whether readers can post comments to the blog and if comments are moderated or not.

**Variables:** `blogId`

### blog​.feed

Fires when the [`feed`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog#field-Blog.fields.feed) field on the [`Blog`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

FeedBurner provider details.

**Variables:** `blogId`

### blog​.handle

Fires when the [`handle`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog#field-Blog.fields.handle) field on the [`Blog`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `handle` field represents a unique, human-friendly string for the blog.

**Variables:** `blogId`

### blog​.metafield(namespace: String!, key: String!)​.\*

Fires when the [`metafield`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog#field-Blog.fields.metafield) field on the [`Blog`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog) object changes.

`blog.metafield(namespace: String!, key: String!).*` is a parent trigger. Subscribing with the `"update"` action receives events for all supported triggers under `blog.metafield(namespace: String!, key: String!)`, including nested triggers. Use a more specific trigger to limit events to the fields you need.

Include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `metafield` field represents a custom field, including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information.

**Variables:** `blogId`, `metafieldKey`, `metafieldNamespace`

### blog​.metafield(namespace: String!)​.\*

Fires when the [`metafield`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog#field-Blog.fields.metafield) field on the [`Blog`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog) object changes.

`blog.metafield(namespace: String!).*` is a parent trigger. Subscribing with the `"update"` action receives events for all supported triggers under `blog.metafield(namespace: String!)`, including nested triggers. Use a more specific trigger to limit events to the fields you need.

Include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

This subscription omits the optional argument `metafield.key`.

The `metafield` field represents a custom field, including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information.

**Variables:** `blogId`, `metafieldKey`, `metafieldNamespace`

### blog​.metafield(namespace: String!, key: String!)​.value

Fires when the [`value`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Metafield#field-Metafield.fields.value) field on the [`Metafield`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Metafield) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `value` field represents the data stored in the metafield.

**Variables:** `blogId`, `metafieldKey`, `metafieldNamespace`

### blog​.metafield(namespace: String!)​.value

Fires when the [`value`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Metafield#field-Metafield.fields.value) field on the [`Metafield`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Metafield) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

This subscription omits the optional argument `metafield.key`.

The `value` field represents the data stored in the metafield.

**Variables:** `blogId`, `metafieldKey`, `metafieldNamespace`

### blog​.templateSuffix

Fires when the [`templateSuffix`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog#field-Blog.fields.templateSuffix) field on the [`Blog`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `templateSuffix` field represents the name of the template a blog is using if it's using an alternate template.

**Variables:** `blogId`

### blog​.title

Fires when the [`title`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog#field-Blog.fields.title) field on the [`Blog`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Blog) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `title` field represents the title of the blog.

**Variables:** `blogId`

### Examples

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "unstable"

  [[events.subscription]]
  handle = "blog-event"

  topic = "Blog"
  actions = ["create","update","delete"]
  triggers = ["blog.*"]

  uri = "https://your-app.com/events"

  query = """
  query blog_details($blogId: ID!) {
    blog(id: $blogId) {
      id
      title
      handle
    }
  }
  """
  ```

  ##### Payload (added)

  ```json
  {
    "topic": "Blog",
    "action": "create",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog"
      }
    },
    "fields_changed": {
      "added": [
        "blog[id: 'gid://shopify/Blog/7644953528171']"
      ],
      "updated": [],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171"
    }
  }
  ```

  ##### Payload (updated)

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].commentPolicy"
      ],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171"
    }
  }
  ```

  ##### Payload (removed)

  ```json
  {
    "topic": "Blog",
    "action": "delete",
    "handle": "blog-event",
    "data": {
      "blog": null
    },
    "fields_changed": {
      "added": [],
      "updated": [],
      "removed": [
        "blog[id: 'gid://shopify/Blog/7644953528171']"
      ]
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update # or create, delete
  shopify-api-version: unstable
  shopify-handle: blog-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Blog
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "unstable"

  [[events.subscription]]
  handle = "blog-event"

  topic = "Blog"
  actions = ["update"]
  triggers = ["blog.commentPolicy"]

  uri = "https://your-app.com/events"

  query = """
  query blog_event_payload($blogId: ID!) {
    blog(id: $blogId) {
      id
      title
      handle
      commentPolicy
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog",
        "commentPolicy": "…"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].commentPolicy"
      ],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: blog-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Blog
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "unstable"

  [[events.subscription]]
  handle = "blog-event"

  topic = "Blog"
  actions = ["update"]
  triggers = ["blog.feed"]

  uri = "https://your-app.com/events"

  query = """
  query blog_event_payload($blogId: ID!) {
    blog(id: $blogId) {
      id
      title
      handle
      feed {
        __typename
      }
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog",
        "feed": {
          "__typename": "BlogFeed"
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].feed"
      ],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: blog-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Blog
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "unstable"

  [[events.subscription]]
  handle = "blog-event"

  topic = "Blog"
  actions = ["update"]
  triggers = ["blog.handle"]

  uri = "https://your-app.com/events"

  query = """
  query blog_event_payload($blogId: ID!) {
    blog(id: $blogId) {
      id
      title
      handle
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].handle"
      ],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: blog-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Blog
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "unstable"

  [[events.subscription]]
  handle = "blog-event"

  topic = "Blog"
  actions = ["update"]
  triggers = ["blog.metafield(namespace: 'custom', key: 'rating').*"]

  uri = "https://your-app.com/events"

  query = """
  query blog_event_payload($blogId: ID!, $metafieldNamespace: String!, $metafieldKey: String!) {
    blog(id: $blogId) {
      id
      title
      handle
      metafield(namespace: $metafieldNamespace, key: $metafieldKey) {
        namespace
        key
        value
        type
      }
    }
  }
  """
  ```

  ##### Payload (added)

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].metafield[namespace: 'custom', key: 'rating']"
      ],
      "updated": [],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Payload (removed)

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [],
      "removed": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].metafield[namespace: 'custom', key: 'rating']"
      ]
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: blog-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Blog
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "unstable"

  [[events.subscription]]
  handle = "blog-event"

  topic = "Blog"
  actions = ["update"]
  triggers = ["blog.metafield(namespace: 'custom').*"]

  uri = "https://your-app.com/events"

  query = """
  query blog_event_payload($blogId: ID!, $metafieldNamespace: String!, $metafieldKey: String!) {
    blog(id: $blogId) {
      id
      title
      handle
      metafield(namespace: $metafieldNamespace, key: $metafieldKey) {
        namespace
        key
        value
        type
      }
    }
  }
  """
  ```

  ##### Payload (added)

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].metafield[namespace: 'custom', key: 'rating']"
      ],
      "updated": [],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Payload (removed)

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [],
      "removed": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].metafield[namespace: 'custom', key: 'rating']"
      ]
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: blog-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Blog
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "unstable"

  [[events.subscription]]
  handle = "blog-event"

  topic = "Blog"
  actions = ["update"]
  triggers = ["blog.metafield(namespace: 'custom', key: 'rating').value"]

  uri = "https://your-app.com/events"

  query = """
  query blog_event_payload($blogId: ID!, $metafieldNamespace: String!, $metafieldKey: String!) {
    blog(id: $blogId) {
      id
      title
      handle
      metafield(namespace: $metafieldNamespace, key: $metafieldKey) {
        namespace
        key
        value
        type
      }
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].metafield[namespace: 'custom', key: 'rating'].value"
      ],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: blog-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Blog
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "unstable"

  [[events.subscription]]
  handle = "blog-event"

  topic = "Blog"
  actions = ["update"]
  triggers = ["blog.metafield(namespace: 'custom').value"]

  uri = "https://your-app.com/events"

  query = """
  query blog_event_payload($blogId: ID!, $metafieldNamespace: String!, $metafieldKey: String!) {
    blog(id: $blogId) {
      id
      title
      handle
      metafield(namespace: $metafieldNamespace, key: $metafieldKey) {
        namespace
        key
        value
        type
      }
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].metafield[namespace: 'custom', key: 'rating'].value"
      ],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: blog-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Blog
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "unstable"

  [[events.subscription]]
  handle = "blog-event"

  topic = "Blog"
  actions = ["update"]
  triggers = ["blog.templateSuffix"]

  uri = "https://your-app.com/events"

  query = """
  query blog_event_payload($blogId: ID!) {
    blog(id: $blogId) {
      id
      title
      handle
      templateSuffix
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog",
        "templateSuffix": "…"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].templateSuffix"
      ],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: blog-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Blog
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "unstable"

  [[events.subscription]]
  handle = "blog-event"

  topic = "Blog"
  actions = ["update"]
  triggers = ["blog.title"]

  uri = "https://your-app.com/events"

  query = """
  query blog_event_payload($blogId: ID!) {
    blog(id: $blogId) {
      id
      title
      handle
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Blog",
    "action": "update",
    "handle": "blog-event",
    "data": {
      "blog": {
        "id": "gid://shopify/Blog/7644953528171",
        "title": "Example blog",
        "handle": "example-blog"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "blog[id: 'gid://shopify/Blog/7644953528171'].title"
      ],
      "removed": []
    },
    "query_variables": {
      "blogId": "gid://shopify/Blog/7644953528171"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: blog-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Blog
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

***
