Freshchat API send to whatsapp template with 2 dynamic link button

Hi

Currently, I want to create whatsapp template with 2 dynamic link button.
With 1 link button, I follow this api Freshchat, it is working fire to me. But, 2 link button it doesn’t work.

image

Could you share to me json body for this case?
This is json body I used for 1 dynamic link button

{
  "from": {
    "phone_number": "+xxxxxxxx"
  },
  "provider": "whatsapp",
  "to": [
    {
      "phone_number": "+xxxxxxxxxx"
    }
  ],
  "data": {
    "message_template": {
      "storage": "none",
      "template_name": "test_template",
      "namespace": "namespace",
      "language": {
        "policy": "deterministic",
        "code": "en"
      },
      "rich_template_data": {
        "body": {
          "params": [
            {
              "data": "Data 1"
            },
            {
              "data": "Data 2"
            }
          ]
        },
        "button": [
            {
                "subType": "url",
                "params": [
                    {
                    "data": "test1"
                    }
                ]
            }
        ]
      }
    }
  }
}

I tried add one more params look like this one. But It still doesn’t work

"button": [
            {
                "subType": "url",
                "params": [
                    {
                    "data": "test1"
                    },
                    {
                    "data": "test2"
                    }
                ]
            }
        ]

Hey @loi.nguyen,

Welcome to the Freshworks Developer Community! :tada:

I’ve raised a support ticket on your behalf.