Raw body data in custom app webhook

I´m having a bit of trouble with a custom app webhook where I need to access the raw body to use it to calculate a SHA256 validation signature.

I can use the {{createJSON(body)}} to get the string. And it works as long as the body does not contain non-ASCII chars.
But if the body contains non-ASCII chars (like emojis or the swedish chars å, ä or ö) then the {{createJSON(body)}} will of cause not revert the back to their unicode squence and the SHA256 calculation will not match the one provided by the caller.

Example where the value contains 3 non-ASCII chars:
{“event”:“update”,“data”:{“dtable_uuid”:“ee8db4b14c704dcd89c948460fc41fdc”,“row_id”:“CEr_myw6SR-F9jgZXGBJ8g”,“op_user”:“74558ec03fea48b1b0738e4dfc5e4bb1@auth.local”,“op_type”:“insert_row”,“op_time”:1755778076.56,“table_id”:“0000”,“table_name”:“Table1”,“row_name”:“🎉⭐höger”,“row_name_option”:“”,“row_data”:[{“column_key”:“0000”,“column_name”:“Name”,“column_type”:“text”,“column_data”:{},“value”:“🎉⭐höger”}]}}

However, if I use the built in Custom Webhook trigger I can set the advanced option “JSON-pass through” on the webhook to get hold of the raw body (where the non-ASCII chars are unicode encoded) to get it to work, but then i need to do the validation of the SHA256 signature in the next module i the scenario sequence and i need it inside of the custom app.

Example from the built in Custom Webhook trigger with the same data as value:
{“event”: “update”, “data”: {“dtable_uuid”: “ee8db4b14c704dcd89c948460fc41fdc”, “row_id”: “Gd8Wd9-yRSmzgSk8L_G54g”, “op_user”: “74558ec03fea48b1b0738e4dfc5e4bb1@auth.local”, “op_type”: “insert_row”, “op_time”: 1755776665.043, “table_id”: “0000”, “table_name”: “Table1”, “row_name”: “\ud83c\udf89\u2b50h\u00f6ger”, “row_name_option”: “”, “row_data”: [{“column_key”: “0000”, “column_name”: “Name”, “column_type”: “text”, “column_data”: {}, “value”: “\ud83c\udf89\u2b50h\u00f6ger”}]}}

I found a similar question asked by user matt8 almost a year ago, but no really useful solution was posted. How to access raw webhook body in custom app webhook

Is there a way to access the raw body directly and not a pre-processed one when working with the webhook data?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.