Can't get Webhook Working


I am trying to send a whatsapp message through a rest api once a new row is added in table. So I have created a behavious and added a webhook action like:

Preset: Custom
HTTP Content Type: JSON
‘username’ : “name”,
‘password’ : “password”,
‘recipientIds’ : “<>”,
‘Message’ : “Hi”

While testing this code, I am getting a bad response error. Can some guide me as to where am I going wrong and what am I missing in the format.

I have used my API in AppScript and that seems to be working fine. I am also attaching a sample of my AppScript Code…

var params = {
‘username’ : Username,
‘password’ : Password,
‘recipientIds’ : ID,
‘Message’ : Message

var options ={
‘method’ : ‘post’,
‘payload’ : params

var result= UrlFetchApp.fetch(“”, options);

I have been trying to figure this error out from months. It’ll be appreciated if anyone can help.

What is the error message is saying ?

Also worth trying to change the JSON, removing single quote and use double quote instead.

1 Like

Tried Double quote asa well… Didn’t work…

Error Message:
Failed: Webhook HTTP post request failed with exception The remote server returned an error: (400) Bad Request.

I am thinking I am doing something wrong in setting it up cause its working in app script code. Any other suggesstions?

There are two types of double quotes…

That was my case with google chat webhooks with thay 400 error. Please check this thread