We are trying to create a chatbot type of application. Sometimes the application ends up in a state where we are unable to send a message back to the user. Can you provide guidance on how to troubleshoot this. Currently we are simply creating new chatbots. But we wouldn’t want this to happen to a production application.
here is a sample request/response.
POST /v2/im/chat/messages HTTP/1.1
Host: api.zoom.us
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJ2ZXIiOiI2IiwiY2xpZW50SWQiOiJlN1R2RHIyUVN2aVhVaDNEX1hBY0F3IiwiaXNzIjoidXJuOnpvb206Y29ubmVjdDpjbGllbnRpZDplN1R2RHIyUVN2aVhVaDNEX1hBY0F3IiwiYXV0aGVudGljYXRpb25JZCI6IjlhNmQ2MGQ0N2IzNzFiMTExZTdkNjE1Y2VjMDA1OTZiIiwiZW52IjpbbnVsbF0sInVzZXJJZCI6IkQ5LVhxUWhrVFYtbHVQZWRqM0FUS0EiLCJncm91cE51bWJlciI6MCwiYXVkIjoiaHR0cHM6Ly9vYXV0aC56b29tLnVzIiwibmJmIjoxNTY2MjMzODIzLCJleHAiOjE1NjYyMzc0MjMsInRva2VuVHlwZSI6ImNsaWVudF90b2tlbiIsImlhdCI6MTU2NjIzMzgyMywianRpIjoiOGVlM2RjNzctYTRmOS00NjQ1LTgzNWItMjI3MmJmNWQyNjQxIn0.CJYKb0651Az_zMpi_AjcWzWCL6g-iK6d5CV5KvcIamhin8JB_wLtMaXG4n-ijoxLMV0b-wctvx0zIHENwkyvkg
Content-Type: application/json
{“robot_jid”:“v1eif9waq_qaw0-u_ukk7paa@xmpp.zoom.us”,“to_jid”:“d9-xqqhktv-lupedj3atka@xmpp.zoom.us”,“account_id”:“35OVrJQuQOCWqKbk9Fq4Pg”,“content”:{“head”:{“text”:“hello”}}}
BOTTENDER |INFO | 2019-08-19 16:57:04.107247024 [ZOOM REPLY]: POST to https://api.zoom.us/v2/im/chat/messages took 127 msec: https://api.zoom.us/v2/im/chat/messages
BOTTENDER |ERROR| 2019-08-19 16:57:04.107306988 [ZOOM REPLY]: http request to https://api.zoom.us/v2/im/chat/messages didn’t return 201: (403) {
“code”:7004,
“message”:“The user does not have authorization, the application cannot send the message.”
@ps40, I think your issue is you are on the Basic plan.
You need to have at least the Pro Plan to use the Zoom API’s. Your email is currently on the Basic plan. If you would like to have a Free Trial to test the Zoom API’s contact isv@zoom.us.
@tommy is having a PRO account still required for Chatbot API? I’m not seeing it in the documentation but getting the below error sometimes… which I’m not sure when…
{
"code":7004,
"message":"The user does not have authorization, the application cannot send the message."
}
I think the issue may be different. Can you please create a new topic here: #zoom-api and fill out the post template so we have enough information to debug?
@Tommy, you are right, my issue was different – bot endpoint URL for [development] is not valid, not up to date with the current ngrok session. Sorry about that. Thanks