I´ve built a little bot and I´ve also created a WebHook to link it with other apps.
Now I´m beginning testing it and I´m using PostMan.
I build the call to the public url with the bearer token and send this payload:
payload: {
“session”: {
“new”: true
},
“message”: {
“text”: “Hello”
},
“from”: {
“id”: “me” ,
“userInfo”: {
“firstName”:“Name” ,
“lastName”:“Surname”,
“email":"myemail@mail.com”
}
},
“to”: {
“id”: “bot”
}
}
and the response is:
{
“errors”: [
{
“msg”: “PAYLOAD_FIELDS_REQUIRED”,
“code”: 412
}
]
}
So my question is: How should I build this payload to attach it into Postman call and make it work?
Could you please help me?
Thanks in advance