03-30-2022 03:17 AM
Hello, I am developing a bot in Webex Teams and have a question regarding the webhooks. Anyone knows if webhook messages are guaranteed and resend if the receiving end does not confirm the reception?
03-31-2022 05:35 AM
Are there any rate-limits to consider for my chatbot? (will have to handle quite much volume)
03-31-2022 06:07 AM
Rate limiting is discussed on https://developer.webex.com/docs/basics#rate-limiting. If you do get rate limited you need to honor the retry-after header(which is in seconds) and wait before retrying the request.
03-30-2022 03:59 AM
I also use the Cisco Enterprise Chat & Mail API. There it is documented that webhooks, that are not confirmed, will be resent several times.
https://pubhub.devnetcloud.com/media/enterprise-chat-and-email/docs/guides/interaction-api-developer-guide/d2/d97/classclientapplications_1_1pages_1_1asyncmessaging_1_1_callback_page.html#v19_clientapplications_callback_deactivation
Does Webex Teams API handle it the same way?
03-30-2022 05:57 AM
Webex webhooks will not retry if there is an issue reaching the targetUrl defined in the webhook.
03-30-2022 03:21 AM
When you create a webhook for a particular event, the notification data will be sent as an HTTP POST, in JSON format, to a URL of your choosing, each time it is triggered. Please note, that this URL must be publicly reachable and Internet-accessible by Webex, where your application will be listening for inbound HTTP requests.
A response is also required from the web server for delivery. If Webex does not receive a successful HTTP response in the 2xx range from the server, your webhook will be disabled after 100 failed attempts within a five minute period.
For more details, refer https://developer.webex.com/docs/webhooks
03-30-2022 03:34 AM
thank you, I just saw this in the documentation as well. However it is not documented if those who fail are resent?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide