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

                    Zoho Pagesense Resources

                      Zoho SalesIQ Resources



                            Zoho TeamInbox Resources

                              Zoho DataPrep Resources



                                Zoho CRM Plus Resources

                                  Zoho Books Resources


                                    Zoho Subscriptions Resources

                                      Zoho Desk Resources

                                        Zoho Projects Resources


                                          Zoho Sprints Resources


                                            Qntrl Resources


                                              Zoho Creator Resources


                                                Zoho WorkDrive Resources





                                                    Zoho Campaigns Resources

                                                      Zoho CRM Resources

                                                            Design. Discuss. Deliver.

                                                            Create visually engaging stories with Zoho Show.

                                                            Get Started Now