# Webhook POST response body capture

**URL:** <https://forum.youcanbook.me/t/webhook-post-response-body-capture/1979>\
**Category:** API\
**Created:** [November 12, 2022, 9:09am UTC](https://forum.youcanbook.me/t/webhook-post-response-body-capture/1979 "2022-11-12T09:09:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtcp](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@mtcp](https://forum.youcanbook.me/u/mtcp)\
**Post date:** [November 12, 2022, 9:09am UTC](https://forum.youcanbook.me/t/webhook-post-response-body-capture/1979/1 "2022-11-12T09:09:48Z")

</div>

Hi,

Every time a new booking is created I have a webhook POST request that successfully creates a new resource to another place (basically creates a shortened version of the booking management url for that booking).

The remote server then creates the shortened link and sends it back (along with other things) in a response body. I already know how the response would look like I am not sure how to structure my post request to capture that response, filter out the short link and assign it to a field in the original booking.

---

<div class="post-metadata">

**Author:** ![Ben](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.youcanbook.me/ben/32/772_2.png) [@Ben](https://forum.youcanbook.me/u/Ben)\
**Post date:** [November 14, 2022, 3:27pm UTC](https://forum.youcanbook.me/t/webhook-post-response-body-capture/1979/2 "2022-11-14T15:27:02Z")

</div>

@mtcp welcome to the Forum! I am not sure I follow your workflow here. You create a POST after booking with the shortened link for managing a booking. Then you want to parse this POST out with another system? Where are you trying to get this new link?

---

<div class="post-metadata">

**Author:** ![mtcp](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@mtcp](https://forum.youcanbook.me/u/mtcp)\
**Post date:** [November 14, 2022, 5:20pm UTC](https://forum.youcanbook.me/t/webhook-post-response-body-capture/1979/3 "2022-11-14T17:20:11Z")

</div>

Hi and thank you for the reply. The idea is this:

I want to be able to send neat and short SMS messages that contain the booking management link. That link looks like this:

> **[YouCanBook.me](https://app.youcanbook.me/#/bookingDetails?id=DUMMY&profileId=2b67916c-3490-4190-97dd-65ae2ff82367)**
>
> Simple online scheduling tool to eliminate the back and forth emails, with customer bookings straight into your calendar.

So I managed to send it using {MANAGE-BOOKING-LINK} shorthandcode to an outside service via a webhook that fires as soon as the booking is created. I am using a POST to the url shortening service. On my account there, I can see that the POST is received and the short url is created. I tested it and it works.

Now, I want to get back to [youcanbook.me](http://youcanbook.me) that shortened url, attach it as a value to a hidden or passthrough question for that booking so I can use it in my SMS’s. This is where my problem is.

The url shortening service returns a response when the short url is successfully created (I tested it with webhook.site) which is probably ignored by [youcanbook.me](http://youcanbook.me)?

Hope I was clear and thank you.

---

<div class="post-metadata">

**Author:** ![Ben](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.youcanbook.me/ben/32/772_2.png) [@Ben](https://forum.youcanbook.me/u/Ben)\
**Post date:** [November 18, 2022, 2:45pm UTC](https://forum.youcanbook.me/t/webhook-post-response-body-capture/1979/4 "2022-11-18T14:45:42Z")

</div>

This one is tricky since our system cannot parse out a POST reply. You would need to explore using a tool like Make or Zapier to make the initial request to get the shortened URL. This then can be sent in an SMS to the customer. If you want to replace a Shorthand code you would have to PATCH the hidden form field with the shortened URL you get from your POST to that other system.
