Workflow webhooks with nested parameters

Hi @Peta_APB,

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 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

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

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).

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

Best,

Ludwig