# Webhooks - Sending a payload body?

**URL:** <https://community.prismic.io/t/webhooks-sending-a-payload-body/2750>\
**Category:** Developing with Prismic\
**Created:** [November 18, 2020, 10:12pm UTC](https://community.prismic.io/t/webhooks-sending-a-payload-body/2750 "2020-11-18T22:12:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gctravelapp](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/gctravelapp/32/1248_2.png) [@gctravelapp](https://community.prismic.io/u/gctravelapp)\
**Post date:** [November 18, 2020, 10:12pm UTC](https://community.prismic.io/t/webhooks-sending-a-payload-body/2750/1 "2020-11-18T22:12:15Z")

</div>

Hi everyone,

I am hoping to create a webhook to hit a workflow dispatch event (which then triggers a re-build of our Gatsby site) as per the docs here: [Actions - GitHub Docs](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#create-a-workflow-dispatch-event)

This endpoint requires 'ref' to be set in the body, however Prismic's Webhooks interface doesn't provide a way to send body parameters.

Is there a way to do this or do I have to set up a proxy?

---

<div class="post-metadata">

**Author:** ![online](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/online/32/1344_2.png) [@online](https://community.prismic.io/u/online)\
**Post date:** [November 19, 2020, 9:21am UTC](https://community.prismic.io/t/webhooks-sending-a-payload-body/2750/2 "2020-11-19T09:21:57Z")

</div>

Hi Mike, welcome 🙂

I'm a user trying to get something very similar going myself.  
From my looking it seems that `repository_dispatch` is the better fit for what you're trying to do.

Check here:

> **[Repositories - GitHub Docs](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#create-a-repository-dispatch-event)**

---

<div class="post-metadata">

**Author:** ![gctravelapp](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/gctravelapp/32/1248_2.png) [@gctravelapp](https://community.prismic.io/u/gctravelapp)\
**Post date:** [November 19, 2020, 2:35pm UTC](https://community.prismic.io/t/webhooks-sending-a-payload-body/2750/3 "2020-11-19T14:35:48Z")

</div>

Hi there! I've already been down the road with `repository_dispatch` however it's only helpful for dispatches made on the default branch, whereas I need to trigger a deploy on another branch

---

<div class="post-metadata">

**Author:** ![online](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/online/32/1344_2.png) [@online](https://community.prismic.io/u/online)\
**Post date:** [November 20, 2020, 8:52am UTC](https://community.prismic.io/t/webhooks-sending-a-payload-body/2750/4 "2020-11-20T08:52:45Z")

</div>

Looks like the team are focussing on improving webhooks this week.  
I've requested they include what you're suggesting. See how it goes.

> [@Setting Authorization Header in Webhooks](https://community.prismic.io/t/setting-authorization-header-in-webhooks/514/20):
>
> Thanks so much @Phil, that is greatly appreciated smiley While they are looking at Webhooks can they also add support for setting Headers and a Body, as raised by @ [gctravelapp](https://community.prismic.io/u/gctravelapp) here. [https://community.prismic.io/t/webhooks-sending-a-payload-body/2750?u=online](https://community.prismic.io/t/webhooks-sending-a-payload-body/2750)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 3, 2020, 1:52pm UTC](https://community.prismic.io/t/webhooks-sending-a-payload-body/2750/6 "2020-12-03T13:52:41Z")

</div>

Being tracked as an open feature request in the other thread.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 5:00pm UTC](https://community.prismic.io/t/webhooks-sending-a-payload-body/2750/7 "2021-12-09T17:00:21Z")

</div>


