I have a Genesys Bot Connector and I am trying to use /api/v2/textbots/bots/execute endpoint to send a message to an existing bot session.
Body
{
"botId": "1",
"botAlias": "",
"integrationId": "xxxxxx",
"botSessionId": "qweqweqweq",
"botChannels": ["Messaging"],
"postTextMessage": {
"type": "Text",
"text": "sss",
"content": [
{
"contentType": "Text",
"text": {
"type": "Text",
"body": "Hi How are you"
}
}
]
}
}
and I am getting an error:
{
"message": "Code: 502, Reason: Bad Gateway, msg: ",
"code": "bots.bot.general.provider.failure",
"status": 400,
"messageParams": {},
"contextId": "cfbf6a91-a214-47eb-a7cb-b0dcd5d2f428",
"details": [],
"errors": []
}
Why am I getting this error? is the body look correct?