# Search for channel posts generated by incoming webhook using REST API?

**URL:** <https://forum.mattermost.com/t/search-for-channel-posts-generated-by-incoming-webhook-using-rest-api/13024>\
**Category:** Troubleshooting\
**Created:** [February 28, 2022, 1:58pm UTC](https://forum.mattermost.com/t/search-for-channel-posts-generated-by-incoming-webhook-using-rest-api/13024 "2022-02-28T13:58:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmontag98](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rmontag98](https://forum.mattermost.com/u/rmontag98)\
**Post date:** [February 28, 2022, 1:58pm UTC](https://forum.mattermost.com/t/search-for-channel-posts-generated-by-incoming-webhook-using-rest-api/13024/1 "2022-02-28T13:58:51Z")

</div>

Hello, is there a good way to query a channel for all posts that have been created using a webhook?  
I can see that a post - created by a webhook - has the following information set:

```auto
    "zfs19y7qttgqjjbcjyz6atu3pr": {
      "id": "zfs19y7qttgqjjbcjyz6atu3pr",
      "create_at": 1646053476161,
      "update_at": 1646053476161,
...
      "props": {
        "from_webhook": "true",
        "webhook_display_name": "Some fancy Webhook name"
      },
...

```

Is there a better way as to do a brute force “get all posts and check result for props set” using GetPostsFor Channel ([Mattermost API Reference](https://api.mattermost.com/#operation/GetPostsForChannel)) ?

The reason I asked is because people have created Incoming Webhooks but not restricted the channels to which the webhook should post; so I now need to find out on which channels the webhook might have been posted.

Thanks in advance,  
Rainer
