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

# Page

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

Subscribe to field-level changes on the [`Page`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page) 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_page_event"


topic = "Page"
actions = ["update"]
triggers = ["page.body"]


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


query = """
query page_event_payload($pageId: ID!) {
  page(id: $pageId) {
    id
    title
    handle
    body
  }
}
"""
```

***

## Supported triggers

Field-level [triggers](https://shopify.dev/docs/api/events/latest#configuration) for `Page` 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 [`Page`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page). They can query the full GraphQL Admin API.

### page​.\*

Fires when events involve the [`Page`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page) 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.

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

**Variables:** `pageId`

### page​.body

Fires when the [`body`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page#field-Page.fields.body) field on the [`Page`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page) 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 `body` field represents the text content of the page, complete with HTML markup.

**Variables:** `pageId`

### page​.bodySummary

Fires when the [`bodySummary`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page#field-Page.fields.bodySummary) field on the [`Page`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page) 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 `bodySummary` field represents the first 150 characters of the page body.

**Variables:** `pageId`

### page​.handle

Fires when the [`handle`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page#field-Page.fields.handle) field on the [`Page`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page) 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 page.

**Variables:** `pageId`

### page​.isPublished

Fires when the [`isPublished`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page#field-Page.fields.isPublished) field on the [`Page`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page) 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 `isPublished` field indicates whether or not the page is visible.

**Variables:** `pageId`

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

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

`page.metafield(namespace: String!, key: String!).*` is a parent trigger. Subscribing with the `"update"` action receives events for all supported triggers under `page.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:** `metafieldKey`, `metafieldNamespace`, `pageId`

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

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

`page.metafield(namespace: String!).*` is a parent trigger. Subscribing with the `"update"` action receives events for all supported triggers under `page.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:** `metafieldKey`, `metafieldNamespace`, `pageId`

### page​.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:** `metafieldKey`, `metafieldNamespace`, `pageId`

### page​.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:** `metafieldKey`, `metafieldNamespace`, `pageId`

### page​.publishedAt

Fires when the [`publishedAt`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page#field-Page.fields.publishedAt) field on the [`Page`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page) 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 `publishedAt` field represents the date and time (ISO 8601 format) when the page became or will become visible.

**Variables:** `pageId`

### page​.templateSuffix

Fires when the [`templateSuffix`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page#field-Page.fields.templateSuffix) field on the [`Page`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page) 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 suffix of the template that's used to render the page.

**Variables:** `pageId`

### page​.title

Fires when the [`title`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page#field-Page.fields.title) field on the [`Page`](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Page) 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`.

Title of the page.

**Variables:** `pageId`

### Examples

* #### Subscribe via app configuration

  ##### shopify.app.toml

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

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

  topic = "Page"
  actions = ["create","update","delete"]
  triggers = ["page.*"]

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

  query = """
  query page_details($pageId: ID!) {
    page(id: $pageId) {
      id
      title
      handle
    }
  }
  """
  ```

  ##### Payload (added)

  ```json
  {
    "topic": "Page",
    "action": "create",
    "handle": "page-event",
    "data": {
      "page": {
        "id": "gid://shopify/Page/1267217259064",
        "title": "Example page",
        "handle": "example-page"
      }
    },
    "fields_changed": {
      "added": [
        "page[id: 'gid://shopify/Page/1267217259064']"
      ],
      "updated": [],
      "removed": []
    },
    "query_variables": {
      "pageId": "gid://shopify/Page/1267217259064"
    }
  }
  ```

  ##### Payload (updated)

  ```json
  {
    "topic": "Page",
    "action": "update",
    "handle": "page-event",
    "data": {
      "page": {
        "id": "gid://shopify/Page/1267217259064",
        "title": "Example page",
        "handle": "example-page"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "page[id: 'gid://shopify/Page/1267217259064'].body"
      ],
      "removed": []
    },
    "query_variables": {
      "pageId": "gid://shopify/Page/1267217259064"
    }
  }
  ```

  ##### Payload (removed)

  ```json
  {
    "topic": "Page",
    "action": "delete",
    "handle": "page-event",
    "data": {
      "page": null
    },
    "fields_changed": {
      "added": [],
      "updated": [],
      "removed": [
        "page[id: 'gid://shopify/Page/1267217259064']"
      ]
    },
    "query_variables": {
      "pageId": "gid://shopify/Page/1267217259064"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update # or create, delete
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

  topic = "Page"
  actions = ["update"]
  triggers = ["page.body"]

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

  query = """
  query page_event_payload($pageId: ID!) {
    page(id: $pageId) {
      id
      title
      handle
      body
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Page",
    "action": "update",
    "handle": "page-event",
    "data": {
      "page": {
        "id": "gid://shopify/Page/1267217259064",
        "title": "Example page",
        "handle": "example-page",
        "body": "…"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "page[id: 'gid://shopify/Page/1267217259064'].body"
      ],
      "removed": []
    },
    "query_variables": {
      "pageId": "gid://shopify/Page/1267217259064"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

  topic = "Page"
  actions = ["update"]
  triggers = ["page.bodySummary"]

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

  query = """
  query page_event_payload($pageId: ID!) {
    page(id: $pageId) {
      id
      title
      handle
      bodySummary
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Page",
    "action": "update",
    "handle": "page-event",
    "data": {
      "page": {
        "id": "gid://shopify/Page/1267217259064",
        "title": "Example page",
        "handle": "example-page",
        "bodySummary": "…"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "page[id: 'gid://shopify/Page/1267217259064'].bodySummary"
      ],
      "removed": []
    },
    "query_variables": {
      "pageId": "gid://shopify/Page/1267217259064"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

  topic = "Page"
  actions = ["update"]
  triggers = ["page.handle"]

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

  query = """
  query page_event_payload($pageId: ID!) {
    page(id: $pageId) {
      id
      title
      handle
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Page",
    "action": "update",
    "handle": "page-event",
    "data": {
      "page": {
        "id": "gid://shopify/Page/1267217259064",
        "title": "Example page",
        "handle": "example-page"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "page[id: 'gid://shopify/Page/1267217259064'].handle"
      ],
      "removed": []
    },
    "query_variables": {
      "pageId": "gid://shopify/Page/1267217259064"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

  topic = "Page"
  actions = ["update"]
  triggers = ["page.isPublished"]

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

  query = """
  query page_event_payload($pageId: ID!) {
    page(id: $pageId) {
      id
      title
      handle
      isPublished
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Page",
    "action": "update",
    "handle": "page-event",
    "data": {
      "page": {
        "id": "gid://shopify/Page/1267217259064",
        "title": "Example page",
        "handle": "example-page",
        "isPublished": "…"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "page[id: 'gid://shopify/Page/1267217259064'].isPublished"
      ],
      "removed": []
    },
    "query_variables": {
      "pageId": "gid://shopify/Page/1267217259064"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

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

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

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

  ##### Payload (added)

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

  ##### Payload (removed)

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

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

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

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

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

  ##### Payload (added)

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

  ##### Payload (removed)

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

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

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

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

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

  ##### Payload

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

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

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

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

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

  ##### Payload

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

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

  topic = "Page"
  actions = ["update"]
  triggers = ["page.publishedAt"]

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

  query = """
  query page_event_payload($pageId: ID!) {
    page(id: $pageId) {
      id
      title
      handle
      publishedAt
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Page",
    "action": "update",
    "handle": "page-event",
    "data": {
      "page": {
        "id": "gid://shopify/Page/1267217259064",
        "title": "Example page",
        "handle": "example-page",
        "publishedAt": "…"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "page[id: 'gid://shopify/Page/1267217259064'].publishedAt"
      ],
      "removed": []
    },
    "query_variables": {
      "pageId": "gid://shopify/Page/1267217259064"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

  topic = "Page"
  actions = ["update"]
  triggers = ["page.templateSuffix"]

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

  query = """
  query page_event_payload($pageId: ID!) {
    page(id: $pageId) {
      id
      title
      handle
      templateSuffix
    }
  }
  """
  ```

  ##### Payload

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

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: unstable
  shopify-handle: page-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Page
  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 = "page-event"

  topic = "Page"
  actions = ["update"]
  triggers = ["page.title"]

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

  query = """
  query page_event_payload($pageId: ID!) {
    page(id: $pageId) {
      id
      title
      handle
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Page",
    "action": "update",
    "handle": "page-event",
    "data": {
      "page": {
        "id": "gid://shopify/Page/1267217259064",
        "title": "Example page",
        "handle": "example-page"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "page[id: 'gid://shopify/Page/1267217259064'].title"
      ],
      "removed": []
    },
    "query_variables": {
      "pageId": "gid://shopify/Page/1267217259064"
    }
  }
  ```

  ##### Headers

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

***
