# Workflow webhooks with nested parameters

**URL:** <https://community.hubspot.com/t/workflow-webhooks-with-nested-parameters/74594>\
**Category:** APIs & Integrations\
**Created:** [February 6, 2023, 10:40pm UTC](https://community.hubspot.com/t/workflow-webhooks-with-nested-parameters/74594 "2023-02-06T22:40:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![LMeert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lmeert/32/103847_2.png) [@LMeert](https://community.hubspot.com/u/LMeert)\
**Post date:** [February 7, 2023, 9:56am UTC](https://community.hubspot.com/t/workflow-webhooks-with-nested-parameters/74594/2 "2023-02-07T09:56:35Z")

</div>

Hi [@Peta\_APB](https://community.hubspot.com/t5/user/viewprofilepage/user-id/27963),

You cannot customize the body of the webhook action in workflows to have nested fields.

It only sends flat JSON (unless there’s a secret, undocumented method for that ? @Teun, @Anton)  
There are two workarounds I can think of :

1. This one works for sure but you’ll need an operations hub pro subscription : use the [custom code action](https://developers.hubspot.com/docs/api/workflows/custom-code-actions) to make a custom API call using either Axios (NodeJS) or Requests (Python)
2. This one I haven’t tried it till the end but I don’t see why this wouldn’t work :  
Use a custom property named ‘details’ and format it using the “format data” action

 ![LMeert_0-1675763484876.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/9/49ebcdc986c0d3eb192ca210303a275fb52c4d18.png)

Use the custom mode and concat function to format the inside of the “details” key.  
Then set up your webhook like so :

 ![LMeert_1-1675763624028.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/5/75b721729fa53f03722648c958037340c0af3a17.png)

If this works for this specific use case that’s nice, but if at some point you need a more advanced customisation (like support of an OAuth flow for authentication) you will have to find another way.  
(Either the custom code action from the Pro subscrption or a webhooks to a third party solution like [make.com](http://make.com)).

Hope this helps !  
If it does, please consider marking this answer as a solution 🙂

Best,

Ludwig

---

_[View the full topic](https://community.hubspot.com/t/workflow-webhooks-with-nested-parameters/74594)._
