How to remove Message Keyword from Response in Frappe

I am looking for a way to remove the Message keyword as I need to send a response in a predefined format in below code, the message keyword should not be there, and it should return in the payload directly


Disable Cache
1 request
250 B / 1.02 kB transferred
Finish: 1.82 s

1

{"data":{"whatsapp_galaxy_forward_flow_data_response":{"error_msg":null,"payload":"{\"message\":\"oueUaCDHYFStXSCrk1O53w7zn2s3VgCQHHnR2tfQicp4XaF3l5kfMOLb6bUmvkwbo2gB70t7ShhnGWm9fvLIPwS9K1Yz2g==\"}","status_code":200}},"extensions":{"is_final":true}}

Hi @CA_B.C_Chechani:

New v2 API provides response in “data” key.

Anyway, you can customize werkzeug response
Check this:

Hope this helps.

Thanks , I will follow as directed and update