# Determining which documents have changed with webhooks

**URL:** <https://community.prismic.io/t/determining-which-documents-have-changed-with-webhooks/89>\
**Category:** Prismic for Content Creators\
**Tags:** product-feature-idea\
**Created:** [March 27, 2020, 4:22pm UTC](https://community.prismic.io/t/determining-which-documents-have-changed-with-webhooks/89 "2020-03-27T16:22:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathanael](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/nathanael/32/33_2.png) [@nathanael](https://community.prismic.io/u/nathanael)\
**Post date:** [March 27, 2020, 4:22pm UTC](https://community.prismic.io/t/determining-which-documents-have-changed-with-webhooks/89/1 "2020-03-27T16:22:57Z")

</div>

I'm planning to use the webhook feature for sending notifications on new article release for users. I could not find the way to grab the published content's ID. Any pointers?

---

<div class="post-metadata">

**Author:** ![nathanael](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/nathanael/32/33_2.png) [@nathanael](https://community.prismic.io/u/nathanael)\
**Post date:** [March 27, 2020, 4:37pm UTC](https://community.prismic.io/t/determining-which-documents-have-changed-with-webhooks/89/2 "2020-03-27T16:37:23Z")

</div>

I think I figured it out. The Webhooks do not specify what has changed, just that something has changed.

After you receive a webhook you can [query your documents by publication date](https://prismic.io/docs/rest-api/query-the-api/query-by-date#7_0-query-by-publication-dates) (`first_publication_date` and `last_publication_date` ) and use the [`date.after` predicate](https://prismic.io/docs/rest-api/query-the-api/date-based-predicate-reference#2_1-after) to get documents that have been published or changed since the previous time you received a webhook. With [GraphQL](https://prismic.io/docs/graphql/query-the-api/query-by-date#10_0-query-by-a-publication-date) you can use `firstPublicationDate_after` and `lastPublicationDate_after` arguments to query after a given date and time.

---

<div class="post-metadata">

**Author:** ![robin](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@robin](https://community.prismic.io/u/robin)\
**Post date:** [April 3, 2020, 11:34am UTC](https://community.prismic.io/t/determining-which-documents-have-changed-with-webhooks/89/3 "2020-04-03T11:34:56Z")

</div>

Thank you! Hope Prismic will add it on the webhook.

---

<div class="post-metadata">

**Author:** ![nathanael](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/nathanael/32/33_2.png) [@nathanael](https://community.prismic.io/u/nathanael)\
**Post date:** [September 22, 2020, 1:34pm UTC](https://community.prismic.io/t/determining-which-documents-have-changed-with-webhooks/89/6 "2020-09-22T13:34:49Z")

</div>

This is being tracked as an open feature request.

If you have another use-case for this feature, you can 'Flag' this topic to reopen. Please use the ❤ button to show your support for the feature and check out our [Feature Request Guidelines](https://community.prismic.io/t/feature-requests-what-do-you-already-love-what-could-be-better/844).

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [October 1, 2020, 4:18pm UTC](https://community.prismic.io/t/determining-which-documents-have-changed-with-webhooks/89/7 "2020-10-01T16:18:13Z")

</div>

Just an update for everyone, we are currently working on this feature and will update you with the progress of this feature here 🙂

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [December 9, 2021, 5:26pm UTC](https://community.prismic.io/t/determining-which-documents-have-changed-with-webhooks/89/8 "2021-12-09T17:26:43Z")

</div>


