News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Webhook Subscriptions Set Up By Users Who Have Left are Still Sending Data
Tags: webhooks, auth
Jul 24, 2023 at 12:08pm   •   1 replies  •  0 likes
Addison Cahill

Hello All,

Apologies for the verbose title but I wanted it to articulate my companies issue clearly. Here is what's happening:

Our company integrates with RC for many of our customers in order to obtain and track their telephony data. To accomplish this, we create webhook subscriptions for each account on behalf of a user from the account. The issue with this approach is that when that user leaves, a new user must authenticate with RC and thus, another subscription is created. The new webhook subscription itself is not the issue but rather, the old subscription which isn't deleted. Since the old subscription was made by a user we no longer track in our system, we cannot view or delete the old subscription via the RC API (https://platform.ringcentral.com/restapi/v1.0/subscription).


Is there a way for us to be able to view all webhook subscriptions for an account if we only have a specific users access token? If so, how can we delete the 'old' subscriptions? Perhaps there is a response we can return when the webhook sends us updates that would cancel the subscription - almost similar to getting our endpoint blacklisted except in this case, we would want the subscription to be deleted.


Please ask any clarifying questions needed and thanks in advance.

1 Answer
answered on Jul 25, 2023 at 8:22am  

Unfortunately, right now we don't have a solution for this. We are considering to provide a capability for a super admin to mange subscriptions for other extension tthough.

For now, the first thing to do is to prevent this by deleting the current subscription (using the subscription owner access token) before creating a new subscription with a new user's access token.

For those orphaned subscriptions that send unexpected events, detect the subscription id from the events and submit a dev support ticket to ask the support team delete them for you.


 1



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us