Bot execute API

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?

Please open a case with Genesys Cloud Care. 5xx errors cannot be investigated via the dev forum.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.