API Request Key Value Entry - Zoho FLOW Custom Function

API Request Key Value Entry - Zoho FLOW Custom Function

Hello,

Could someone help me about below API Request custom function of Zoho Flow script? How can I get params part between [ ]  in output as key and value? 

They have to appear as key-value but I couldn't get success it. Probably need some small change. It has to be appear as like attached format. You can see input and output logs below.

If someone help me about it, I will appreciate.

Thank you so much in advance.

INPUT

string trengo_whatsapp_template(string hsm_id, string recipient_phone_number, string ticket_id, string contact_name, string owner_name)
{
headers = Map();
headers.put("Authorization","Bearer xxxxxxxxx");
headers.put("Content-Type","application/json");
info headers;
info url;
//params
params = {"{{1}}":contact_name};
params = {"{{2}}":owner_name};
//body
body = Map();
body.put("hsm_id",hsm_id);
body.put("ticket_id",ticket_id);
body.put("recipient_phone_number",recipient_phone_number);
info body;
response = invokeurl
[
url :url
type :POST
parameters:body
headers:headers
];
info response;
status = response.toMap();
info status.get("read").toString();
return status.get("read").toString();
}


OUTPUT LOG

{
		"Authorization": "Bearer.xxxxxxxxx",
		"Content-Type": "application/json"
	},
	"https://app.xxxxxxxx",
	{
		"hsm_id": 45744,
		"ticket_id": 495003399,
		"recipient_phone_number": "+905304343960"
	},
	{
		"message": "Missing value for HSM param {{1}} (f8597599-84cc-46f7-92af-161e0725a1be)",
		"errors": [

		]
	},
	null 
]





                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


                                        Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now